-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (39 loc) · 890 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
51
52
services:
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_DB: devmax_account
POSTGRES_USER: devmax_account_admin
POSTGRES_PASSWORD: p;rXG1Y75E
volumes:
- planAce_data_bot:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U devmax_account_admin -d devmax_account" ]
interval: 10s
timeout: 5s
retries: 10
networks:
- planAce_net
ports:
- "54321:5432"
restart: unless-stopped
tg-bot:
container_name: tg-bot
image: tg-bot:latest
environment:
POSTGRES_HOST: postgres
depends_on:
postgres:
condition: service_healthy
restart: true
networks:
- planAce_net
ports:
- "8440:8443"
restart: unless-stopped
volumes:
planAce_data_bot:
networks:
planAce_net:
driver: bridge