-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
75 lines (69 loc) · 1.56 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
services:
zwd-backend:
build: app
hostname: zwd-backend
image: ${REGISTRY:-127.0.0.1:5001}/${REPOSITORY:-salmagundi/zwd-backend}:${VERSION:-latest}
ports:
- 8081:8000
- 5679:5678
networks:
- zwd_network
depends_on:
- database
env_file:
- path: .env
- path: .local.env
required: false
command: bash -c "/app/deploy/docker-entrypoint.sh && exec 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
database:
networks:
- zwd_network
image: postgres:15.7
shm_size: "512m"
ports:
- "6410:5432"
env_file:
- .env
volumes:
- postgresql-data:/var/lib/postgresql/data
zwd-redis:
build: redis
environment:
- REDIS_PASSWORD=password
- REDIS_MAXMEM=100mb
networks:
- zwd_network
ports:
- "6378:6379"
zwd_celery_worker:
image: ${REGISTRY:-127.0.0.1:5001}/${REPOSITORY:-salmagundi/zwd-backend}:${VERSION:-latest}
container_name: zwd_celery_worker
hostname: zwd_celery_worker
command: bash -c '/app/celery.sh'
depends_on:
- zwd-backend
- database
- zwd-redis
env_file:
- .env
networks:
- zwd_network
restart: on-failure
azurite:
image: mcr.microsoft.com/azure-storage/azurite
hostname: azurite
restart: always
ports:
- "10000:10000"
- "10001:10001"
networks:
- zwd_network
networks:
zwd_network:
external: true
volumes:
postgresql-data: