-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
71 lines (67 loc) · 1.36 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
version: "3.3"
services:
app_rabbitmq:
container_name: app_rabbitmq
hostname: rabbitmq
image: rabbitmq:latest
ports:
- "5672:5672"
networks:
- app_network
restart: on-failure
environment:
- RABBITMQ_DEFAULT_USER=app_user
- RABBITMQ_DEFAULT_PASS=changeme
app_redis:
container_name: app_redis
networks:
- app_network
image: redis:latest
command: redis-server --requirepass changeme
ports:
- "6379:6379"
restart: on-failure
app_db:
container_name: app_db
image: postgres:13.1
environment:
- POSTGRES_USER=app_user
- POSTGRES_PASSWORD=changeme
- POSTGRES_DB=app_db
volumes:
- app_db:/var/lib/postgresql/13.1/main
ports:
- "5432:5432"
networks:
- app_network
restart: on-failure
app_worker_core:
command: sh -c "celery -A app.core worker -l info"
container_name: app_worker_core
depends_on:
- app
- app_db
- app_rabbitmq
- app_redis
hostname: app_worker_core
image: app
networks:
- app_network
restart: on-failure
app:
container_name: app
build: ./
depends_on:
- app_db
- app_rabbitmq
- app_redis
ports:
- "8001:8000"
image: app
networks:
- app_network
restart: on-failure
networks:
app_network:
volumes:
app_db: