-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
90 lines (82 loc) · 1.4 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
version: '3.8'
services:
app:
build: .
restart: always
ports:
- "8000:8000"
depends_on:
- db
- redis
env_file:
- .env
volumes:
- ./:/app
networks:
- backend
db:
image: postgres:14-alpine
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- .env
ports:
- "5432:5432"
networks:
- backend
redis:
image: redis:7-alpine
restart: always
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- backend
pgadmin:
image: dpage/pgadmin4
restart: always
depends_on:
- db
env_file:
- .env
environment:
- PGADMIN_DEFAULT_PASSWORD=admin
ports:
- "5050:80"
networks:
- backend
celery_worker:
build: .
restart: always
command: celery -A app.tasks.celery worker --loglevel=info
depends_on:
- db
- redis
- app
env_file:
- .env
volumes:
- ./:/app
networks:
- backend
celery_flower:
build: .
restart: always
command: celery -A app.tasks.celery flower --port=5555
ports:
- "5555:5555"
depends_on:
- celery_worker
env_file:
- .env
networks:
- backend
networks:
backend:
driver: bridge
volumes:
postgres_data:
redis_data: