-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (62 loc) · 1.57 KB
/
docker-compose.yml
File metadata and controls
69 lines (62 loc) · 1.57 KB
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
version: "3.3"
services:
database:
container_name: database
image: postgres:14
env_file:
- ".docker/conf/common.env"
volumes:
- ".docker/conf/postgres/postgresql.conf:/etc/postgresql/postgresql.conf"
networks:
- db-net
ports:
- "5432:5432"
backend:
container_name: backend
build:
context: .
dockerfile: ./.docker/Dockerfile
image: backend:latest
command: "sh /application/.docker/conf/gunicorn/django-dev.sh"
volumes:
- "./:/application"
working_dir: /application
depends_on:
- database
- redis
env_file:
- ".docker/conf/common.env"
- ".docker/conf/server.env"
environment:
PYTHONUNBUFFERED: 1
ports:
- "8000:8000"
networks:
- db-net
- nginx-net
redis:
container_name: redis
image: redis:5.0.6-alpine
networks:
- db-net
beat:
container_name: beat
image: backend:latest
command: "sh /application/.docker/conf/gunicorn/celery.sh"
volumes:
- "./:/application"
working_dir: /application
env_file:
- ".docker/conf/common.env"
- ".docker/conf/server.env"
networks:
- db-net
ports:
- "7999:7999"
depends_on:
- database
- redis
- backend
networks:
db-net:
nginx-net: