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>
16 lines
274 B
YAML
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
|