forked from aiogram/bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 796 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 796 Bytes
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
version: '3.7'
services:
bot:
build:
context: .
restart: on-failure
stop_signal: SIGINT
depends_on:
- redis
- postgres
environment:
BOT_PUBLIC_PORT: 80
TELEGRAM_TOKEN:
DOMAIN:
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB_FSM:
REDIS_DB_JOBSTORE:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_PASSWORD:
POSTGRES_USER:
POSTGRES_DB:
redis:
image: redis:5-alpine
restart: on-failure
volumes:
- redis-data:/data
postgres:
image: postgres:12-alpine
restart: on-failure
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD:
POSTGRES_USER:
POSTGRES_DB:
volumes:
redis-data:
postgres-data: