-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
97 lines (92 loc) · 3.32 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
version: "3.4"
services:
redis:
image: redis:latest
hostname: redis
web:
image: raphaelrobidas/calcus2:latest
hostname: web
user: "${UID}:${GID}"
command: ./scripts/run_web.sh
expose:
- 8000
volumes:
- ./scr:/calcus/scr
- ./keys:/calcus/keys
- ./backups:/calcus/backups
- ./logs:/calcus/logs
- ./frontend/migrations:/calcus/frontend/migrations
- ./scripts:/calcus/scripts
links:
- redis
env_file:
- ./.env
depends_on:
- postgres
environment:
- GUNICORN_TIMEOUT=30
nginx:
image: nginx:latest
ports:
- "8080:8080"
volumes:
- ./docker/nginx/:/etc/nginx/conf.d
- ./static:/static
- .:/calcus
depends_on:
- web
celery_main:
image: raphaelrobidas/calcus2:latest
user: "${UID}:${GID}"
command: ./scripts/run_celery_main.sh
volumes:
- ./scr:/calcus/scr
- ./keys:/calcus/keys
- ./backups:/calcus/backups
env_file:
- ./.env
links:
- redis
depends_on:
- redis
celery_comp:
image: raphaelrobidas/calcus2:latest
user: "${UID}:${GID}"
command: ./scripts/run_celery_comp.sh
volumes:
- ./scr:/calcus/scr
- ./keys:/calcus/keys
env_file:
- ./.env
links:
- redis
depends_on:
- redis
cluster:
image: raphaelrobidas/calcus2:latest
user: "${UID}:${GID}"
command: ./scripts/run_cluster_daemon.sh
env_file:
- ./.env
volumes:
- ./scr:/calcus/scr
- ./keys:/calcus/keys
links:
- web
depends_on:
- redis
postgres:
image: postgres:11-bullseye
user: "${UID}:${GID}"
command: postgres -c config_file=/etc/postgresql/postgresql.conf
volumes:
- ./data:/var/lib/postgresql/data/:rw
- ./docker/postgres/postgresql.conf:/etc/postgresql/postgresql.conf
- ./backups:/calcus/backups
- ./logs:/calcus/logs
env_file:
- ./.env
environment:
- PGDATA=/var/lib/postgresql/data/
- POSTGRES_USER=calcus
- POSTGRES_DB=calcus