Database
Stackarr offers two database modes.
App defaults
Recommended for most installations. Stackarr stores its own settings and task history in SQLite, while each enabled app uses its normal database. Apps that require Postgres still use Stackarr's shared database container automatically.
Shared Postgres
Advanced mode moves Stackarr and supported services to separate logical databases in one Postgres container. This can simplify central backup and database administration for larger stacks.
The database image includes TimescaleDB and pgvector for services such as Tracearr and Immich. Plex keeps its upstream database format in either media-server mode.
Access from the host
The database listens inside Docker on port 5432 and is published to 127.0.0.1:5433 by default. It is not exposed to the LAN.
To initialize or repair the configured databases:
docker exec stackarr /app/bin/stackarr database ensureUse the Stackarr dashboard to view redacted connection details. Enter database credentials only through authenticated settings or setup surfaces.
Recovery after an engine restart
The Stackarr controller checks for database startup failures after each start, even when scheduled maintenance is disabled. It makes up to 60 checks, five seconds apart. Once PostgreSQL accepts connections, it can restart an enabled Arr app or Cleanuparr that is still running but unreachable with a confirmed database startup failure. Arr file logs are also checked when Docker logging is disabled.
Recovery only considers logs from the current container start and attempts each service once per controller start. Healthy apps, stopped apps, SQLite-backed Arr apps, and unrelated failures are left unchanged. It does not recreate containers or change library paths. Keep the controller enabled to receive this recovery after Docker Desktop, OrbStack, or the Docker daemon restarts.
Backups
When shared Postgres is active, Stackarr backups include database roles and dumps for the managed logical databases. A backup fails if a required database cannot be read, preventing a misleading partial archive.