Production checklist#
Use this list when you move a composition from the local stack to a long-lived deployment. It states what the code requires and assumes; add your own site procedures.
Trust model#
Warning
The version 1 deployment assumes a trusted network. It has no tenant isolation, and the server must not be exposed to untrusted networks.
Sign-in is mandatory outside
isolated-development: withGEONEMO_AUTH_ENABLEDoff, the server refuses to start whenGEONEMO_ENVIRONMENT_IDENTITYisproductionorproduction-backed-development.Put TLS and ingress in front of the server; the production overlay includes an nginx template for that.
Assemble the production stack#
Start with the options in Configuration. Supply your site values in a
private environment file, including public origins, sign-in settings,
database passwords, storage, and image references. Provide
GEONEMO_TLS_KEY_FILE and GEONEMO_TLS_CHAIN_FILE for the ingress. The
bundled nginx template is the default. Set GEONEMO_INGRESS_CONFIG_FILE to
use a site-specific template.
From the repository root, render the complete production composition:
files=$(python3 deploy/compose_files.py --require production \
deploy/production/compose.yml deploy/media.yml)
docker compose --env-file /path/to/site.env $files config --quiet
Build the server using the local skills setup in Run the local stack or supply the digest of an image you built. Use the same Compose arguments for database administration and startup after validating the configuration and storage. The optional NeMo Platform and GPU workers require a compatible runtime and images. Configure the parts you intend to run.
The included deploy/production/deploy-production.sh automates a
GitLab-managed rollout and expects that CI environment. For a site using that
automation, set GEONEMO_PRODUCTION_STORAGE_ROOT to the approved parent of
GEONEMO_PRODUCTION_GKB_ROOT and GEONEMO_PRODUCTION_MEDIA_ROOT to the
host media directory. The media source mounts read-only inside the containers.
Images and configuration#
Deploy images by digest, not by tag, and record the digests of each release.
Build one server image and run every API role, worker and controller from it.
Keep protected configuration (database passwords, OIDC client secret, MCP delegation key, provider credentials) in a secret store or private env file, never in the repository or the image. See Configuration.
Review
deploy/production/parts.yamlas a deployment change. The deploy tooling checks it against the image withgeonemo-services parts checkand adds each part’s overlay withcompose_files.py --require, so a missing part fails before any change. See Choose the parts.Validate the rendered Compose before deploying; see Compose files.
Data#
Create the database roles and run
geonemo-services database migratebefore starting a new release; see Host-local administration.Back up the canonical GKB root and the PostgreSQL databases on a schedule. The
gkb-backupprofile writes GKB backups to an S3-compatible store; enable bucket versioning, and object lock when you need immutability.Test restores into empty, isolated targets.
Keep the canonical root on persistent storage with one writer set.
Operations#
The health monitor records status history. Phoenix stores traces. Watch both, and set retention (
telemetry,status) inservices.yaml.Run the API roles as separate processes when you need isolation between the toolkit, the agent service and monitoring; see API roles.
Restrict GPU use with
GEONEMO_GPU_POOL_UUIDSand the operator settings.Publish ports on loopback and expose only the ingress.