-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1010 Bytes
/
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
services:
redis:
image: redis:alpine
container_name: fsmbot-redis
command: redis-server
env_file:
- ./.env
restart: on-failure
ports:
- 6379:6379
db:
image: postgres:16-alpine
container_name: fsmbot-postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
env_file:
- ./.env
volumes:
- pgdata:/var/lib/postgresql/data
restart: on-failure
ports:
- 5434:5432
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
fsm_bot:
container_name: bot
image: fsm_bot
build: .
environment:
- BOT_TOKEN=${BOT_TOKEN}
- ADMIN_IDS=${ADMIN_IDS}
- DEBUG=1
volumes:
- fsmdata:/fsmdata
restart: always
depends_on:
- redis
- db
volumes:
pgdata:
fsmdata: