forked from Disappost/ton-vs-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
56 lines (56 loc) · 1.21 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
50
51
52
53
54
55
56
version: '3.9'
services:
postgres:
image: postgres:13
environment:
POSTGRES_USER: user1
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
POSTGRES_DB: tonhelp
ports:
- 5432:5432
secrets:
- postgres_password
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- net1
bot:
image: ${DOCKER_REGISTRY:-localhost:5000}/ton-vs-bot:v0.2
build:
context: ton-vs-bot
dockerfile: Dockerfile
secrets:
- postgres_password
- telegram_token
networks:
- net1
deploy:
restart_policy:
condition: on-failure
delay: 5s
daily-stats:
image: ${DOCKER_REGISTRY:-localhost:5000}/ton-vs-bot-daily-stat:v0.2
build:
context: ton-vs-daily-stat-bot
dockerfile: Dockerfile
secrets:
- postgres_password
- stats_telegram_token
networks:
- net1
deploy:
restart_policy:
condition: on-failure
delay: 5s
volumes:
postgres_data:
external: false
networks:
net1:
secrets:
postgres_password:
file: private/postgres_password
telegram_token:
file: private/telegram_token
stats_telegram_token:
file: private/stats_telegram_token