# Production overlay: layer on top of docker-compose.yml on the deploy
# host so the backend and frontend run from pre-built registry images
# instead of building locally.
#
#   docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d
#
# REGISTRY_URL and IMAGE_TAG are injected by .gitea/workflows/deploy.yml
# at deploy time. IMAGE_TAG defaults to `latest` so a manual
# `docker compose ... up -d` on the host still works.

services:
  backend:
    build: !reset null
    image: ${REGISTRY_URL}/mangalord-backend:${IMAGE_TAG:-latest}
    pull_policy: always
    restart: unless-stopped

  frontend:
    build: !reset null
    image: ${REGISTRY_URL}/mangalord-frontend:${IMAGE_TAG:-latest}
    pull_policy: always
    restart: unless-stopped
