-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
96 lines (94 loc) · 2 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3'
volumes:
xauth:
x11-unix:
services:
db:
image: postgres
container_name: measure24_db
volumes:
- ./postgres-data:/var/lib/postgresql/data
env_file:
- ./.env
web:
build:
context: .
dockerfile: Dockerfile
container_name: measure24
command: ["sh", "/home/start.sh"]
volumes:
- .:/measure24
ports:
- "8000:8000"
env_file:
- ./.env
depends_on:
- db
- geckodriver
- xvfb
- x11vnc
geckodriver:
build:
context: .
dockerfile: ./geckodriver/Dockerfile
volumes:
- xauth:/tmp/xauth
- x11-unix:/tmp/.X11-unix
environment:
DISPLAY: :0
XAUTHORITY: /tmp/xauth/Xauthority
xvfb:
image: quay.io/cvlibrary/xvfb
volumes:
- xauth:/tmp/xauth
- x11-unix:/tmp/.X11-unix
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"
redis_container:
image: redis:6.0
command: redis-server
environment:
- REDIS_REPLICATION_MODE=master
- TZ="Europe/Warsaw"
volumes:
- ./redis-data:/var/lib/redis
- ./redis.conf:/usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
celery:
build:
context: .
dockerfile: Dockerfile
command: celery -A measure24 worker -l info
volumes:
- .:/measure24
env_file:
- ./.env
depends_on:
- db
- web
- redis_container
celery_beat:
build:
context: .
dockerfile: Dockerfile
command: celery -A measure24 beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
volumes:
- .:/measure24
env_file:
- ./.env
depends_on:
- db
- web
- redis_container