-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (30 loc) · 981 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (30 loc) · 981 Bytes
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
services:
# NodePass 应用 - 使用GitHub发布的镜像
nodepassdash:
image: ghcr.io/nodepassproject/nodepassdash:latest
container_name: nodepassdash
# network_mode: "host" # 如需要ipv6,可考虑使用host模式
ports:
- "3000:3000" # Web UI + API (single port)
# environment:
# - PORT=3000
# - LOG-LEVEL=INFO
# - TLS_CERT=/path/to/cert.pem
# - TLS_KEY=/path/to/key.pem
# - DISABLE_LOGIN=true
volumes:
- /etc/localtime:/etc/localtime:ro
# TLS certificates
# - /path/to/cert.pem:/path/to/cert.pem
# - /path/to/key.pem:/path/to/key.pem
# Persist data
- ./db:/app/db
# Persist file logs (optional but recommended)
- ./logs:/app/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s