-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
53 lines (47 loc) · 1014 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
53 lines (47 loc) · 1014 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
45
46
47
48
49
50
51
52
53
services:
dev-bot:
extends:
file: docker-compose.base.yml
service: bot
volumes:
- ./bot/alembic:/app/alembic
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
scheduler:
extends:
file: docker-compose.base.yml
service: scheduler
depends_on:
redis:
condition: service_healthy
postgres:
image: postgres:15
environment:
POSTGRES_USER: $POSTGRES__USER
POSTGRES_PASSWORD: $POSTGRES__PASSWORD
POSTGRES_DB: $POSTGRES__DB
ports:
- 5435:5432
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
networks:
- bot-network
redis:
extends:
file: docker-compose.base.yml
service: redis
volumes:
postgres_data:
redis_data:
networks:
bot-network:
driver: bridge