-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
51 lines (51 loc) · 1.18 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
version: "3.9"
services:
django:
build: .
volumes:
- .:/app
depends_on:
db:
condition: service_healthy
command: >
bash -c "python manage.py migrate && python manage.py loaddata delft3dgtmain/fixtures/default_users_groups.json && python manage.py loaddata delft3dworker/fixtures/default_template.json && python manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
redis:
image: "redis:alpine"
ports:
- "6379:6379"
celery:
build: .
volumes:
- .:/app
command: celery multi start 2 -A delft3dcontainermanager -Q:1 {{ node1 }} -Q:2 {{ node2 }} -c2 -l INFO -Ofair
depends_on:
- redis
- db
celerybeat:
build: .
volumes:
- .:/app
command: celery worker --app=delft3dgtmain -Q beat --beat -l INFO
depends_on:
- redis
- db
flower:
build: .
volumes:
- .:/app
command: celery --app=delft3dcontainermanager flower
ports:
- "5555:5555"
depends_on:
- redis
db:
image: postgres:12
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 1s
timeout: 5s
retries: 5