-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.local.yml
85 lines (79 loc) · 2.11 KB
/
docker-compose.local.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
services:
zaak-redis:
build: redis
environment:
- REDIS_PASSWORD=password
- REDIS_MAXMEM=100mb
networks:
- zaken_network
ports:
- "6379:6379"
database:
networks:
- zaken_network
image: postgis/postgis:14-3.2
shm_size: "512m"
ports:
- "6409:5432"
env_file:
- .env
volumes:
- postgresql-data:/var/lib/postgresql/data
zaak-gateway:
networks:
- zaken_network
- top_and_zaak_backend_bridge
build: app
hostname: zaak-gateway
image: ${REGISTRY:-127.0.0.1:5001}/${REPOSITORY:-salmagundi/zaken-backend}:${VERSION:-latest}
ports:
- 8080:8000
- 5678:5678
depends_on:
- database
- zaak-redis
env_file:
- .env
entrypoint: /app/deploy/docker-entrypoint.development.sh
command: python -m debugpy --listen 0.0.0.0:5678 ./manage.py runserver 0.0.0.0:8000
volumes:
- ./app:/app
stdin_open: true
tty: true
zaken_celery_worker:
image: ${REGISTRY:-127.0.0.1:5001}/${REPOSITORY:-salmagundi/zaken-backend}:${VERSION:-latest}
container_name: zaken_celery_worker
hostname: zaken_celery_worker
entrypoint: /app/deploy/docker-entrypoint.celery.sh
command: bash -c "/app/wait-for.sh http://zaak-gateway:8000 -- /app/celery.sh"
depends_on:
- zaak-gateway
- database
- zaak-redis
env_file:
- .env
networks:
- zaken_network
restart: on-failure
zaken_celery_beat:
image: ${REGISTRY:-127.0.0.1:5001}/${REPOSITORY:-salmagundi/zaken-backend}:${VERSION:-latest}
container_name: zaken_celery_beat
hostname: zaken_celery_beat
entrypoint: /app/deploy/docker-entrypoint.celery.sh
command: sh -c "/app/wait-for.sh http://zaak-gateway:8000 -- celery -A config beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler"
depends_on:
- zaak-gateway
- database
- zaak-redis
env_file:
- .env
networks:
- zaken_network
restart: on-failure
networks:
zaken_network:
external: true
top_and_zaak_backend_bridge:
external: true
volumes:
postgresql-data: