Skip to main content

Services

A service is the runtime unit in DaoFlow — a running container or set of containers managed by Docker Compose on a target server.

Service Types

TypeDescriptionDefined By
Compose ServiceMulti-container app from a compose.yamlDocker Compose file
Dockerfile ServiceBuilt from a Dockerfile in a Git repoGit URL + Dockerfile path
Image ServiceRuns a pre-built Docker imageImage reference (e.g., nginx:alpine)

Service Configuration

Each service stores:

  • Name — unique identifier within the project
  • Source type — compose, dockerfile, or image
  • Repository URL — Git repo (for Dockerfile/Compose sources)
  • Compose path — path to compose.yaml within the repo
  • Image tag — specific image version to deploy
  • Environment variables — key-value pairs (encrypted at rest)
  • Volume mounts — persistent storage configuration
  • Port mappings — exposed ports

Service State

Services don't have runtime state tracked in the database — their state is determined by the latest deployment status:

Deployment StatusService State
completed (succeeded)Running / Healthy
completed (failed)Degraded
queued / deployUpdating
No deploymentsNot deployed

DaoFlow now surfaces the most important operator-facing endpoints directly from the service read model:

  • Primary domain when a custom hostname is configured
  • Additional domains when the service exposes more than one route
  • Published ports when the service maps a host port without a managed hostname

Each surfaced endpoint includes a state such as healthy, pending, failed, or unavailable so operators can tell whether the route is live, still coming online, misrouted, or simply not configured yet.

Working with Services

# List all services
daoflow services --json

# View a specific service
daoflow services --name my-api --json

# Update service configuration
daoflow service update --name my-api --image my-api:v2 --yes

Permissions

ActionRequired Scope
List servicesservice:read
View service configservice:read
Update service configservice:update