-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
98 lines (88 loc) · 1.76 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: "3.9"
services:
backend:
# command: python ./app/manage.py runserver 0.0.0.0:8000
image: local
build: .
container_name: backend
stdin_open: true
tty: true
volumes:
- "./:/project/code"
ports:
- "8000:8000"
- "8001:8001" #debug_port
depends_on:
- postgres
- rabbitmq
- memcached
celery:
command: celery -A settings worker -l info --pool threads -c 10
image: local
build: .
container_name: celery
depends_on:
- postgres
- rabbitmq
- memcached
celerybeat:
command: celery -A settings beat -l info
image: local
build: .
container_name: celerybeat
depends_on:
- postgres
- rabbitmq
- memcached
- celery
flower:
command: celery -A settings flower
image: local
build: .
container_name: flower
ports:
- "5555:5555"
env_file: .env
depends_on:
- backend
- rabbitmq
- celery
- celerybeat
memcached:
image: memcached:1.6.12
container_name: memcached
# ports:
# - "11211:11211"
rabbitmq:
image: rabbitmq:3.9.12-management-alpine
container_name: rabbitmq
env_file: .env
# ports:
# - "5672:5672"
# - "15672:15672"
postgres:
image: postgres:14.1-alpine
container_name: postgres
env_file: .env
# ports:
# - "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
env_file: .env
ports:
- "5050:80"
nginx:
container_name: nginx
image: nginx
ports:
- "8080:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- backend
volumes:
db_data: {}