version: '3.8' services: qd-sc-server: build: context: . dockerfile: Dockerfile image: t0ng7u/qd-sc:latest ports: - "8080:8080" volumes: - ./config.yaml:/app/config.yaml:ro environment: - GIN_MODE=release restart: unless-stopped healthcheck: test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s