version: '2' services: frontend: build: context: . dockerfile: Dockerfile container_name: myp-frontend network_mode: host environment: - RUNTIME_ENVIRONMENT=${RUNTIME_ENVIRONMENT:-prod} - OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID:-client_id} - OAUTH_CLIENT_SECRET=${OAUTH_CLIENT_SECRET:-client_secret} - NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://localhost:5000} volumes: - ./db:/app/db restart: unless-stopped healthcheck: test: ["CMD", "wget", "--spider", "http://localhost:3000"] interval: 30s timeout: 10s retries: 3 start_period: 40s