-
Notifications
You must be signed in to change notification settings - Fork 117
/
docker-compose-prod.yml
63 lines (59 loc) · 1.33 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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
networks:
kurisu-net:
aliases:
- kurisu_db
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
networks:
- kurisu-net
- panopticon-net
secrets:
- kurisu_token
- db_user
- db_password
- server_logs_url
depends_on:
db:
condition: service_healthy
restart: always
networks:
kurisu-net:
name: kurisu
driver: bridge
panopticon-net:
name: panopticon
external: true
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