forked from nh-server/Kurisu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yml
48 lines (45 loc) · 1.08 KB
/
docker-compose-prod.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
version: "3.8"
services:
db:
image: postgres:13
volumes:
- kurisudb:/var/lib/postgresql/data
environment:
POSTGRES_USER_FILE: /run/secrets/db_user
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U kurisu"]
interval: 10s
timeout: 5s
retries: 5
secrets:
- db_user
- db_password
restart: always
kurisu:
image: ghcr.io/nh-server/kurisu
environment:
KURISU_TOKEN_FILE: /run/secrets/kurisu_token
DB_USER_FILE: /run/secrets/db_user
DB_PASSWORD_FILE: /run/secrets/db_password
SERVER_LOGS_URL_FILE: /run/secrets/server_logs_url
secrets:
- kurisu_token
- db_user
- db_password
- server_logs_url
depends_on:
db:
condition: service_healthy
restart: always
volumes:
kurisudb:
secrets:
db_user:
file: /opt/secrets/kurisu/db_user
db_password:
file: /opt/secrets/kurisu/db_password
kurisu_token:
file: /opt/secrets/kurisu/token
server_logs_url:
file: /opt/secrets/kurisu/server_logs_url