global: reconcile_interval: 10s health_check_interval: 30s cleanup_interval: 5m containers: - name: web-server image: nginx:latest env: NGINX_HOST: localhost NGINX_PORT: "8080" ports: - "8080:80" restart_policy: always health_check: test: ["CMD", "curl", "-f", "http://localhost:80"] interval: 30s timeout: 10s retries: 3 start_period: 5s volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro - name: redis-cache image: redis:latest ports: - "6379:6379" restart_policy: unless-stopped health_check: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 3