-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
49 lines (49 loc) · 1.01 KB
/
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
services:
redis:
container_name: redis
image: redis:6.2-alpine
ports:
- "6379:6379"
db:
container_name: db
image: postgres:16.0
restart: always
environment:
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
env_file:
- .env
healthcheck:
test: "pg_isready --username=postgres && psql --username=postgres --list"
interval: 5s
timeout: 5s
retries: 3
start_period: 5s
tgbot:
container_name: tgbot
build: tgbot
ports:
- "8001:8000"
volumes:
- ./config:/config
environment:
- BACKEND_URL=http://alarmist:8000
env_file:
- .env
depends_on:
db:
condition: service_healthy
alarmist:
container_name: alarmist
build: alarmist
ports:
- "8000:8000"
volumes:
- ./config:/config
- ./alarmist/src:/app/src
depends_on:
db:
condition: service_healthy