# Offline override: the API and the error worker get no
# route out of the host, which proves the boot (license check included) needs
# no network. Geo is a local file and the status probes are opt-in, so nothing
# else at boot reaches out either.
#
#   docker compose -f docker-compose.yml -f docker-compose.offline.yml up -d
#
# Postgres, API and worker live only on `backend`, an internal network with no
# gateway. The dashboard and Caddy join it too, plus `default` for the outside.
# Not for production: SMTP, S3, Sentry, Google sign-in and AI need egress.

networks:
  backend:
    internal: true

services:
  postgres:
    networks: [backend]
  server:
    networks: [backend]
  db-roles:
    networks: [backend]
  error-worker:
    networks: [backend]
  dashboard:
    networks: [backend, default]
  caddy:
    networks: [backend, default]
