-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathdocker-compose.yml
26 lines (24 loc) · 1.03 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: "3"
services:
virtual-display:
build: "." # rebuilds the image upon running if needed.
image: "autoviewbot:latest"
working_dir: /home/node/app
# This command runs the NodeJS server using ts-node
command: >
sh -c "
echo Starting Virtual Display Server... &&
sudo ./launch-virtual-display.sh
"
ports:
- "3903:3903" # HOST:CONTAINER - NOTE THIS PORT MUST MATCH THE -rfbport #### SET IN ./launch-virtual-display.sh
environment:
- VNC_SERVER_PASSWORD=yourpassword # this is your VNC password to connect
# On host, run `timedatectl set-timezone UTC` to set the Timezone , change UTC with your actual timezone
restart: always
user: node
privileged: true
volumes: # use local disk data instead of image data. Useful for localhost development mode
- ./chrome-profile:/home/node/app/chrome-profile
- ./bot.ts:/home/node/app/bot.ts
- /etc/localtime:/etc/localtime:ro # this syncs the Host server time into the Docker Container