generated from SergeyMi37/django-telegram-bot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
90 lines (88 loc) · 1.74 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:
db:
image: postgres:12
container_name: dtb_postgres
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
env_file:
- ./.env
ports:
- "5433:5432"
redis:
image: redis:alpine
container_name: dtb_redis
iris:
build:
context: .
dockerfile: Dockerfile
restart: always
command: --check-caps false --ISCAgent false
ports:
- 51443:1972
- 52443:52773
- 53773
volumes:
# - ~/iris.key:/usr/irissys/mgr/iris.key
- ./:/irisdev/app
web:
build:
context: .
dockerfile: LocalDockerfile
container_name: dtb_django
restart: always
command: ["bash","entrypoint.sh"]
volumes:
- .:/code
ports:
- "8000:8000"
env_file:
- ./.env
depends_on:
- db
bot:
build:
context: .
dockerfile: LocalDockerfile
container_name: dtb_bot
restart: always
command: python run_polling.py
env_file:
- ./.env
depends_on:
- web
celery:
build:
context: .
dockerfile: LocalDockerfile
container_name: dtb_celery
restart: always
command: celery -A dtb worker --loglevel=INFO
volumes:
- .:/code
env_file:
- ./.env
depends_on:
- redis
- web
celery-beat:
build:
context: .
dockerfile: LocalDockerfile
container_name: dtb_beat
restart: always
command: celery -A dtb beat -l info --scheduler django_celery_beat.schedulers.DatabaseScheduler
volumes:
- .:/code
env_file:
- ./.env
depends_on:
- redis
- celery
- web
volumes:
postgres_data: