-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
72 lines (72 loc) · 1.84 KB
/
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
services:
telegram:
image: ${TELEGRAM_IMAGE_REF}
restart: always
volumes:
- postgres-socket:/var/run/postgresql
environment:
- TELEGRAM_FILE=/run/secrets/telegram
- CRYPTO_FILE=/run/secrets/crypto
- POSTGRES_HOST=/var/run/postgresql
- POSTGRES_DB=kiasuo
- POSTGRES_USER=kiasuo
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres
- WORKER_AUTH=${WORKER_AUTH}
secrets:
- telegram
- crypto
- postgres
depends_on:
postgres:
condition: service_healthy
discord:
image: ${DISCORD_IMAGE_REF}
restart: always
volumes:
- postgres-socket:/var/run/postgresql
environment:
- DISCORD_FILE=/run/secrets/discord
- CRYPTO_FILE=/run/secrets/crypto
- POSTGRES_HOST=/var/run/postgresql
- POSTGRES_DB=kiasuo
- POSTGRES_USER=kiasuo
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres
- WORKER_AUTH=${WORKER_AUTH}
secrets:
- discord
- crypto
- postgres
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16-alpine
command: "postgres -c listen_addresses="
restart: always
user: postgres
volumes:
- postgres-data:/var/lib/postgresql/data
- postgres-socket:/var/run/postgresql
environment:
- POSTGRES_DB=kiasuo
- POSTGRES_USER=kiasuo
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres
secrets:
- postgres
healthcheck:
test: ["CMD", "pg_isready", "-d", "kiasuo", "-U", "kiasuo"]
interval: 10s
timeout: 5s
retries: 5
secrets:
telegram:
file: /home/kiasuo/.secrets/telegram.txt
discord:
file: /home/kiasuo/.secrets/discord.txt
crypto:
file: /home/kiasuo/.secrets/crypto.txt
postgres:
file: /home/kiasuo/.secrets/postgres.txt
volumes:
postgres-data:
postgres-socket: