version: '3.4' services: new-api: build: context: . dockerfile: Dockerfile container_name: new-api-simple restart: always ports: - "3000:3000" volumes: - ./data:/data - ./logs:/app/logs environment: - TZ=Asia/Shanghai - ERROR_LOG_ENABLED=true # 使用SQLite数据库(默认) # - SQL_DSN= # 留空使用SQLite # 不使用Redis缓存 # - REDIS_CONN_STRING= healthcheck: test: ["CMD-SHELL", "wget -q -O - http://localhost:3000/api/status | grep -o '\"success\":\\s*true' | awk -F: '{print $$2}'"] interval: 30s timeout: 10s retries: 3