Files
vstats/docker-compose.hub.yml
zsai001 ea5b5b2f0a fix: 修复 Docker 多架构构建问题
- 修复 GOARCH 硬编码导致 arm64 构建失败
- 移除 wget 依赖,避免 QEMU 模拟器问题
- 使用内置二进制进行健康检查
2025-12-04 21:42:54 +08:00

37 lines
979 B
YAML

version: '3.8'
# Docker Compose configuration using Docker Hub image
# This is the recommended way to deploy vStats Server
services:
vstats-server:
image: zsai001/vstats-server:latest
container_name: vstats-server
restart: unless-stopped
ports:
- "${VSTATS_PORT:-3001}:3001"
environment:
- VSTATS_PORT=${VSTATS_PORT:-3001}
- VSTATS_WEB_DIR=/app/web/dist
- VSTATS_CONFIG_PATH=/app/data/vstats-config.json
- VSTATS_DB_PATH=/app/data/vstats.db
volumes:
# Mount data directory for persistent storage
# Config file and database will be stored here
- ./data:/app/data
# Optional: mount custom config file
# - ./vstats-config.json:/app/data/vstats-config.json:ro
healthcheck:
test: ["CMD", "/app/vstats-server", "version"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
networks:
- vstats-network
networks:
vstats-network:
driver: bridge