-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (59 loc) · 1.27 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
version: "3"
services:
redis:
image: redis:7
restart: always
db:
image: mariadb:10.11
restart: always
env_file:
- init.env
pretalx:
build: ./pretalx
volumes:
- mysql-data:/var/lib/mysql
- ./pretalx-data:/var/pretalx/data
- ./pretalx-static:/var/pretalx/static
env_file:
- pretalx.env
ports:
- "8345:8345"
restart: unless-stopped
depends_on:
- redis
- db
pretalx-worker:
build: ./pretalx
volumes:
- mysql-data:/var/lib/mysql
- ./pretalx-data:/var/pretalx/data
- ./pretalx-static:/var/pretalx/static
- pretalx-backups:/root/backups
env_file:
- pretalx.env
command: /var/pretalx/venv/bin/celery -A pretalx.celery_app worker -l info
restart: unless-stopped
depends_on:
- redis
- db
init:
build: ./pretalx
volumes:
- mysql-data:/var/lib/mysql
- ./pretalx-data:/var/pretalx/data
- ./pretalx-static:/var/pretalx/static
- ./data:/var/init/data
user: root
working_dir: /root/init
env_file:
- init.env
entrypoint: /root/init/init.sh
restart: "no"
profiles: ["init"]
depends_on:
- db
volumes:
mysql-data:
pretalx-data:
pretalx-static:
pretalx-backups: