Skip to content

Administration and deployment

Single-instance mode consists of one CartaVault application image and PostgreSQL/PostGIS. Redis and the worker are optional extensions for asynchronous work or higher load.

  1. Copy the repository environment template.
  2. Generate persistent secrets with python -m app.setup_cli generate-secrets.
  3. Start the Docker Compose or Portainer stack.
  4. Let the migration job complete before the application starts.
  5. Open the setup wizard and create the first administrator.

Never regenerate CARTAVAULT_CREDENTIALS_ENCRYPTION_KEY during an update: stored API keys would become unreadable.

Back up volumes first, select the target image version, then recreate the stack. The version-matched migration container applies Alembic migrations before the application starts.

Back up together:

  • the PostgreSQL database with pg_dump;
  • the photo volume;
  • the avatar volume;
  • the environment file and encryption key.

Regularly test restoration on an isolated instance.

Use HTTPS, enable secure cookies, restrict CORS origins, and protect Portainer access. Instance diagnostics and user management remain administrator-only.

CartaVault user administration panel
Administration centralizes accounts, quotas, and instance safeguards.

See the environment reference and command reference.