-
Notifications
You must be signed in to change notification settings - Fork 118
/
docker-compose.yml
50 lines (46 loc) · 973 Bytes
/
docker-compose.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
version: "3.8"
services:
db:
image: postgres:13
volumes:
- kurisutestdb:/var/lib/postgresql/data
environment:
POSTGRES_USER: kurisu
POSTGRES_PASSWORD: dev123
networks:
default:
aliases:
- kurisu_db
healthcheck:
test: ["CMD-SHELL", "pg_isready -U kurisu"]
interval: 10s
timeout: 5s
retries: 5
kurisu:
build: .
image: ghcr.io/nh-server/kurisu
volumes:
- ./data:/home/kurisu/data
environment:
KURISU_TOKEN_FILE: /run/secrets/kurisu_token
SERVER_LOGS_URL_FILE: /run/secrets/server_logs_url
DB_USER: kurisu
DB_PASSWORD: dev123
networks:
- bridge
secrets:
- kurisu_token
- server_logs_url
depends_on:
db:
condition: service_healthy
networks:
default:
driver: bridge
volumes:
kurisutestdb:
secrets:
kurisu_token:
file: ./token.txt
server_logs_url:
file: ./server_logs_url.txt