Files
ciaovolo/flight-comparator/docker-compose.yml
domverse 717b976293 ci: add GitLab CI/CD pipeline for Docker deploy
On every push to main: builds both Docker images on the server via
docker compose up --build -d, prunes dangling images, and prints the
running container list. No registry required — shell executor runner
on the deployment server is all that's needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 11:32:18 +01:00

31 lines
645 B
YAML

name: flight-radar # pins the project name — must match COMPOSE_PROJECT in .gitlab-ci.yml
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: flight-radar-backend
restart: unless-stopped
ports:
- "8000:8000"
environment:
- DATABASE_PATH=/app/data/cache.db
volumes:
- flight-radar-data:/app/data
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
container_name: flight-radar-frontend
restart: unless-stopped
ports:
- "80:80"
depends_on:
- backend
volumes:
flight-radar-data:
driver: local