services: zhimingge: build: context: . dockerfile: Dockerfile image: zhimingge:latest container_name: zhimingge restart: unless-stopped ports: - "3130:3130" env_file: - .env.local environment: NODE_ENV: production PORT: "3130" HOSTNAME: "0.0.0.0" HISTORY_DATA_DIR: /app/data/history volumes: - ./data/history:/app/data/history healthcheck: test: [ "CMD-SHELL", "node -e \"fetch('http://127.0.0.1:3130/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\"", ] interval: 30s timeout: 5s retries: 3 start_period: 15s