services: nginx: image: nginx:alpine container_name: kamco-train-nginx user: "1000:1000" ports: - "80:80" - "443:443" volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro,Z - ./ssl:/etc/nginx/ssl:ro,Z - ./logs:/var/log/nginx:Z networks: - kamco-cds restart: unless-stopped healthcheck: test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "--no-check-certificate", "https://localhost/monitor/health"] interval: 30s timeout: 10s retries: 3 start_period: 10s networks: kamco-cds: external: true