Configure persistent storage¶
A durable deployment needs to configure two services :
- a database (PostgreSQL or SQLite) for state machines, executions and history;
- a Valkey/Redis instance for the async job queue, activity tasks and pending tasks.
Docker Compose¶
Compose is a convenient way to orchestrate the three services together. The
Stegflow settings shown below (STEGFLOW_*) are the important part: you can
apply them just as well with docker run -e or a mounted config file. See the
configuration reference for how configuration is
applied.
Pick your database backend:
The container runs as a non-root user, so the /data volume must be
writable by it.
Start everything:
The console is available on http://localhost:8080, and the data is kept in named volumes across restarts.