-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
50 lines (46 loc) · 1018 Bytes
/
docker-compose.yaml
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:
bot:
image: "botalovserg/app-bot-docker:latest"
# build:
# dockerfile: ./Dockerfile
# environment:
# - APP_DB_URL=postgresql+asyncpg://botalov:botalov@db/bot_db
restart: "unless-stopped"
volumes:
- "/home/botalov/mycode/telegram-bot-notes/.env:/app/.env"
- "bot-postgres:/var/lib/postgresql/data"
networks:
- back-bot
command: ./run.sh
depends_on:
db:
condition: service_healthy
redis_fsm:
condition: service_healthy
db:
image: postgres:latest
env_file:
- .env.docker
ports:
- "5435:5432"
networks:
- back-bot
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
redis_fsm:
image: "redis:7"
restart: "unless-stopped"
networks:
- back-bot
healthcheck:
test: [ "CMD", "redis-cli","ping" ]
volumes:
- bot-redis:/data
volumes:
bot-postgres:
bot-redis:
networks:
back-bot: