Service Architecture
Networks
Section titled “Networks”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 withdocker network create external_net.proxy_net: Internal network between the backend and the Docker socket proxy.
Volumes
Section titled “Volumes”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.
Services
Section titled “Services”Database
Section titled “Database”- Image:
postgres:16 - Purpose: PostgreSQL database for application data
Backups
Section titled “Backups”- Image:
prodrigestivill/postgres-backup-local:16 - Purpose: Daily database backups
Backend
Section titled “Backend”- Image:
ghcr.io/dataspaceswiss/dataspace-backend - Port: 5010 (internal)
- Purpose: API, build scheduling and Git server
Frontend
Section titled “Frontend”- Image:
ghcr.io/dataspaceswiss/dataspace-frontend - Port: 8080 (internal)
- Purpose: Web user interface
Docker Socket Proxy
Section titled “Docker Socket Proxy”- 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)
Build containers
Section titled “Build containers”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.
