-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 1.57 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
services:
db:
# NOTE: No persistance storage configured.
# Using v14 to prevent schema permissions. See also docker-init-db.sql.
# See: https://hub.docker.com/_/postgres/
image: postgres:15
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./docker-init-db.sql:/docker-entrypoint-initdb.d/init_db.sql
redis:
image: redis
web:
build: &web_build
context: .
image: maykinmedia/open-producten:latest
environment: &web_env
- DJANGO_SETTINGS_MODULE=open_producten.conf.docker
- SECRET_KEY=${SECRET_KEY:-django-insecure-@4wj9(+*bu7*v&%on7+e_8!d1ckl%r=6+sz#d2!pw^@lb0+=}
- DB_NAME=open_producten
- DB_USER=open_producten
- DB_HOST=db
# Only allow all hosts for development/testing purposes!
- ALLOWED_HOSTS=*
ports:
- 8000:8000
depends_on:
- db
celery:
build: *web_build
image: maykinmedia/open-producten:latest
environment: *web_env
command: /celery_worker.sh
healthcheck:
test: [ "CMD", "python", "/app/bin/check_celery_worker_liveness.py" ]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
depends_on:
- db
- redis
celery-beat:
build: *web_build
image: maykinmedia/open-producten:latest
environment: *web_env
command: /celery_beat.sh
depends_on:
- celery
celery-flower:
build: *web_build
image: maykinmedia/open-producten:latest
environment: *web_env
command: /celery_flower.sh
ports:
- "5555:5555"
depends_on:
- redis
- celery