Files
Phantom/docker/docker-compose.landing.yml
NW d2b46ea410 feat: landing via nginx:alpine container with volume mount
- 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
2026-05-18 22:40:53 +01:00

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