-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
49 lines (45 loc) · 1.22 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
version: "3.9"
services:
tgbot:
image: capy-cloud-bot.tgbot:latest
container_name: capy-cloud-bot.tgbot
restart: unless-stopped
env_file:
- ".env"
build:
context: .
depends_on:
postgres:
condition: service_healthy
networks:
- capy-cloud-bot.postgres.network
volumes:
- capy-cloud-bot.tgbot.tc-session:/usr/src/app/${TON_CONNECT_SESSIONS_DIR:?}:rw
postgres:
container_name: capy-cloud-bot.postgres
image: "postgres:15-alpine"
hostname: capy-cloud-bot.postgres
restart: unless-stopped
expose:
- "5432"
# ports:
# - "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
networks:
- capy-cloud-bot.postgres.network
environment:
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_USER: ${POSTGRES_USER:-$USER}
POSTGRES_DB: ${POSTGRES_DB:-$USER}
volumes:
- capy-cloud-bot.postgres.data:/var/lib/postgresql/users:rw
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 60s
retries: 5
start_period: 10s
volumes:
capy-cloud-bot.tgbot.tc-session: {}
capy-cloud-bot.postgres.data: {}
networks:
capy-cloud-bot.postgres.network: {}