-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
50 lines (44 loc) · 1.06 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
version: "3.8"
services:
nginx:
image: nginx:1.21.1
container_name: yd-tg-bot-nginx
depends_on:
- app
ports:
- 8080:80
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
- ./src/static:/srv/yd-tg-bot/src/static:ro
restart: always
redis:
image: redis:6.2.4
container_name: yd-tg-bot-redis
volumes:
- ./var/lib/redis:/data
restart: always
postgres:
image: postgres:13.3
container_name: yd-tg-bot-postgres
volumes:
- ./var/lib/postgresql/data:/var/lib/postgresql/data
env_file: .env.production
restart: always
rq:
image: amaimersion/yd-tg-bot-rq
container_name: yd-tg-bot-rq
depends_on:
- redis
volumes:
- ./docker/rq/supervisor/conf.d:/etc/supervisor/conf.d:ro
env_file: .env.production
restart: always
app:
image: amaimersion/yd-tg-bot-app
container_name: yd-tg-bot-app
depends_on:
- postgres
- rq
env_file: .env.production
restart: always