services: yinli-api: build: context: .. dockerfile: Dockerfile ports: - "1234:1234" environment: - APP_ENV=prod volumes: - ../config:/app/config:ro extra_hosts: - "host.docker.internal:192.168.1.11" restart: always healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:1234/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s