- Removed Dockerfile build; uses nginx:alpine image + read-only volume mount - landing/src/ mounted as /usr/share/nginx/html:ro - nginx.conf mounted as /etc/nginx/conf.d/default.conf:ro - Healthcheck on /health.json
25 lines
618 B
YAML
25 lines
618 B
YAML
services:
|
|
landing:
|
|
image: nginx:alpine
|
|
container_name: phantom-landing
|
|
ports:
|
|
- "8080:80"
|
|
volumes:
|
|
- ../landing/src:/usr/share/nginx/html:ro
|
|
- ../landing/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
environment:
|
|
- API_STATUS_URL=${API_STATUS_URL:-http://host.docker.internal:3000/api/status}
|
|
restart: unless-stopped
|
|
networks:
|
|
- landing-network
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:80/health.json"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
networks:
|
|
landing-network:
|
|
driver: bridge
|