Files
ciaovolo/flight-comparator/docker-compose.yml
domverse 3eed32076b chore: consolidate to single Docker container
Replace two-container setup (separate backend + nginx frontend) with a
single image that runs both via supervisord:

- New Dockerfile: Node stage builds React, Python+nginx stage is the runtime
- supervisord.conf: manages uvicorn (api_server.py) + nginx as sibling procs
- nginx.conf: proxy_pass updated to localhost:8000 (same container)
- docker-compose.yml: simplified to one service on port 80

Deploy:
  docker-compose up -d        # or
  docker build -t flight-radar . && docker run -p 80:80 flight-radar

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 15:30:49 +01:00

16 lines
274 B
YAML

services:
app:
build: .
container_name: flight-radar
restart: unless-stopped
ports:
- "80:80"
environment:
- DATABASE_PATH=/app/data/cache.db
volumes:
- flight-radar-data:/app/data
volumes:
flight-radar-data:
driver: local