-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (31 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
31 lines (31 loc) · 1.02 KB
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
services:
text-legend:
image: ghcr.io/e5sub/text-legend:latest
container_name: text-legend
hostname: text-legend
restart: unless-stopped
ports:
- "3000:3000"
environment:
- TZ=Asia/Shanghai
- PORT=3000
- DB_CLIENT=sqlite
- DB_FILENAME=/app/data/game.sqlite
- DB_POOL_MAX=1
- SQLITE_WAL=true
- SQLITE_SYNCHRONOUS=NORMAL
- SESSION_TTL_MIN=0
- ADMIN_BOOTSTRAP_SECRET=change_me
- ADMIN_BOOTSTRAP_USER=admin_account
- ADMIN_PATH=admin
- UPDATE_RESTART_CMD=kill -TERM 1
volumes:
- ./data:/app/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
healthcheck:
test: ["CMD", "node", "-e", "const http=require('node:http');const req=http.get('http://127.0.0.1:3000/api/readyz',res=>process.exit(res.statusCode===200?0:1));req.on('error',()=>process.exit(1));req.setTimeout(3000,()=>{req.destroy();process.exit(1);});"]
interval: 30s
timeout: 5s
retries: 3
start_period: 60s