-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
127 lines (124 loc) · 2.52 KB
/
docker-compose.yaml
File metadata and controls
127 lines (124 loc) · 2.52 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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: "3.8"
services:
db:
image: postgres
env_file: .env
volumes:
- ./.docker/postgres-data:/var/lib/postgresql/data
restart: unless-stopped
networks:
mywill_backend:
rabbitmq:
image: rabbitmq:3.8.34
env_file: .env
restart: unless-stopped
networks:
mywill_backend:
ports:
- 5672:5672
- 5671:5671
- 15691:15691
- 15692:15692
- 25672:25672
- 4369:4369
scanner:
env_file: .env
image: myw1sh/mywish_scanner
depends_on:
- db
- rabbitmq
restart: unless-stopped
networks:
mywill_backend:
ports:
- "${SCANNER_EXPOSE_PORT?8002}:${SCANNER_PORT?8002}"
signer:
env_file: .env
image: myw1sh/mywish_signer
restart: unless-stopped
networks:
mywill_backend:
depends_on:
- db
volumes:
- ./.docker/postgres-data:/var/lib/postgresql/data
web:
env_file: .env
environment:
- REDIS_HOST=redis
- PIKA_HOST=rabbitmq
build:
context: .
dockerfile: Dockerfile
depends_on:
- db
- rabbitmq
volumes:
- .:/app
ports:
- "${DOCKER_EXPOSE_PORT?8000}:${DJANGO_PORT?8000}"
restart: unless-stopped
command: "python manage.py runserver 0.0.0.0:${DJANGO_PORT?8000}"
#command: "gunicorn -c gunicorn.conf.py lastwill.wsgi:application"
networks:
mywill_backend:
redis:
env_file: .env
image: redis
restart: unless-stopped
networks:
mywill_backend:
ports:
- "${REDIS_EXPOSE_PORT?8000}:${REDIS_PORT?8000}"
receiver:
env_file: .env
build:
context: .
dockerfile: Dockerfile
restart: always
depends_on:
- db
- rabbitmq
- web
- scanner
command: python receiver.py
networks:
- mywill_backend
celery:
env_file: .env
build:
context: .
dockerfile: Dockerfile
depends_on:
- web
- rabbitmq
restart: unless-stopped
command: celery -A lastwill worker -B -l INFO
networks:
mywill_backend:
bot:
env_file: .env
build:
context: .
dockerfile: Dockerfile
depends_on:
- web
- celery
restart: unless-stopped
command: python lastwill/telegram_bot/start_bot.py
networks:
mywill_backend:
checker:
env_file: .env
build:
context: .
dockerfile: Dockerfile
depends_on:
- receiver
- web
restart: unless-stopped
command: "python checker.py"
networks:
mywill_backend:
networks:
mywill_backend: