-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
39 lines (39 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
27
28
29
30
31
32
33
34
35
36
37
38
39
version: '2'
volumes:
xauth:
x11-unix:
services:
geckodriver:
build:
context: .
volumes:
- /etc/machine-id:/etc/machine-id
- xauth:/tmp/xauth
- x11-unix:/tmp/.X11-unix
ports:
- 4444:4444
environment:
DISPLAY: :0
XAUTHORITY: /tmp/xauth/Xauthority
xvfb:
image: quay.io/cvlibrary/xvfb
volumes:
- xauth:/tmp/xauth
- x11-unix:/tmp/.X11-unix
# FIXME: what we really want is for x11vnc to use the xvfb container's
# ipc namespace. For now we just share both with the host.
ipc: "host"
command: -screen 0 1920x1080x24
x11vnc:
image: quay.io/cvlibrary/x11vnc
depends_on:
- xvfb
volumes:
- xauth:/tmp/xauth
- x11-unix:/tmp/.X11-unix
command: -q -nopw -auth /tmp/xauth/Xauthority
environment:
DISPLAY: :0
ipc: "host"
ports:
- 5900:5900