Skip to content

Service Architecture

  • internal_net: Internal network (no internet access) between the database, the backups service and the backend.
  • external_net: Shared network between Caddy, the backend and the frontend. It is created once with docker network create external_net.
  • proxy_net: Internal network between the backend and the Docker socket proxy.
  • postgres_data: Named volume with the PostgreSQL data.
  • caddy_data: Named volume with Caddy’s certificates.
  • ./volume/backend/data: Workspaces, builds and datasets.
  • ./volume/backend/data-protection: Keys that encrypt stored secrets.
  • ./volume/postgres/backups: Daily database backups.
  • ./metrics/host_metrics: Host metrics, mounted read-only into the backend.
  • Image: postgres:16
  • Purpose: PostgreSQL database for application data
  • Image: prodrigestivill/postgres-backup-local:16
  • Purpose: Daily database backups
  • Image: ghcr.io/dataspaceswiss/dataspace-backend
  • Port: 5010 (internal)
  • Purpose: API, build scheduling and Git server
  • Image: ghcr.io/dataspaceswiss/dataspace-frontend
  • Port: 8080 (internal)
  • Purpose: Web user interface
  • Image: wollomatic/socket-proxy:1
  • Purpose: Lets the backend start build containers through a restricted Docker API
  • Image: caddy:2
  • Purpose: Reverse proxy and TLS termination
  • Ports: 80, 443 and 443/udp (exposed to the host)

Each build runs in its own container, BUILD_<transform>_<build>, which the backend starts through the socket proxy and which is removed when the build ends.