-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.49 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.49 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# NetPulse Web - Docker Desktop (Windows/Mac/Linux)
#
# 使用方式:
# 1. docker compose up -d
# 2. 浏览器打开 http://localhost:3000
# 3. docker compose logs -f 查看日志
# 4. docker compose down 停止服务
services:
netpulse:
image: ghcr.io/syunss/netpulse-web:latest
container_name: netpulse
ports:
- "3000:3000"
volumes:
# 数据目录(SQLite 数据库、截图、Excel 导出都在这里)
# Windows 下可改成绝对路径,如 D:/netpulse/data:/app/data
- ./data:/app/data
# 日志目录
- ./logs:/app/logs
# 配置目录(首次启动自动创建默认 config.toml)
- ./config:/app/config
# 安全存储目录(视频 Cookie 加密密钥等敏感本地状态)
- /mnt/sata1-4/docker/Netpulse-web/storage:/app/storage
networks:
- netpulse-net
restart: unless-stopped
environment:
- TZ=Asia/Shanghai
- RUST_LOG=info,netpulse_web=debug,chromiumoxide=off
- CHROME_PATH=/usr/bin/chromium
# 容器内强制使用绝对路径
- NETPULSE__DATABASE__PATH=/app/data/netpulse.db
- NETPULSE__STORAGE__SCREENSHOT_DIR=/app/data/screenshots
- NETPULSE__STORAGE__EXCEL_DIR=/app/data/excel
- NETPULSE__STORAGE__SECURE_DIR=/app/storage
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:3000/api/health || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
netpulse-net:
driver: bridge