Deployment and operations
Standard architecture
Section titled “Standard architecture”The recommended single-instance beta stack contains:
- the unified
ghcr.io/flynx9/cartavaultimage for UI, API, and migrations; - PostgreSQL/PostGIS for geographic data;
- persistent volumes for photos, avatars, imports, and exports.
Redis and a worker are optional extensions for imports and long-running tasks. Standard mode works without them.
Prepare configuration
Section titled “Prepare configuration”Copy the Docker Compose or Portainer environment template. At minimum, configure the database, public URL, CORS origins, sender address, and CartaVault secrets.
Generate secrets with:
python -m app.setup_cli generate-secretsKeep CARTAVAULT_CREDENTIALS_ENCRYPTION_KEY permanently. Losing it makes stored Google and Resend credentials unreadable.
First start
Section titled “First start”- Start PostGIS and wait until healthy.
- Start CartaVault; the container entrypoint applies Alembic migrations under a lock.
- Open the public URL.
- Enter the setup token when requested.
- Create the first administrator.
The setup wizard locks after the first administrator is created.
Update
Section titled “Update”- Create a consistent backup.
- Set
CARTAVAULT_VERSIONto an immutable tag such as1.0.0. - Pull the image and recreate the service.
- Watch migrations and
/healthz. - Verify sign-in, one map, one photo, and a representative calculation.
Avoid the floating beta tag when reproducibility matters. Do not run an older application against a newer schema without a compatible restore procedure.
Backup
Section titled “Backup”A complete backup combines PostgreSQL, photos, avatars, configuration, and the encryption key. Run docker/backup.sh, verify SHA256SUMS, and copy the result away from the host.
Regularly restore into an isolated project. A backup that has never been restored is not a proven recovery path.
Redis and worker
Section titled “Redis and worker”Enable the Redis Compose extension when long tasks should not occupy the web process. Redis keeps the queue and the worker executes tasks. Use a Redis password, persistent storage, and the same image version for the application and worker.
CartaVault supports Resend and generic SMTP. Configure sender identity, transport, and secrets. EMAIL_PROVIDER=none explicitly disables delivery without rolling back business operations.
Health and diagnostics
Section titled “Health and diagnostics”The administration panel exposes CartaVault version, Alembic revision, PostGIS availability, storage, routing, and email state without returning secrets. Orchestrators use /healthz.
See the environment reference, administration commands, and troubleshooting guide.
