Revert the over-hardcoding: Postgres connection settings (host/port/db/user/
password) and TZ are env vars again. The only value fixed in the compose is the
Postgres image version (functional dependency). No silent defaults remain
(${VAR:?}); POSTGRES_PASSWORD ships empty and must be set in Portainer.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
# Clearview stack environment.
|
|
#
|
|
# All per-deployment values live here. The compose references them with
|
|
# ${VAR:?...}, so the stack refuses to start when a required value is missing —
|
|
# there are no silent defaults. The only thing pinned in the compose itself is
|
|
# the Postgres image version (postgres:16-alpine), because the app's migrations
|
|
# depend on it.
|
|
#
|
|
# This is the dev baseline. For the prod stack, override CLEARVIEW_IMAGE_TAG
|
|
# (latest), CLEARVIEW_ENV (prod) and the host ports in Portainer's stack
|
|
# environment. CLEARVIEW_ENV drives the container names (clearview-<env>, …) and
|
|
# the Postgres data dir (/docker/appdata/clearview-<env>/postgres) so dev and
|
|
# prod run side by side.
|
|
|
|
CLEARVIEW_IMAGE_TAG=dev
|
|
CLEARVIEW_ENV=dev
|
|
CLEARVIEW_PORT=8080
|
|
ADMINER_PORT=8081
|
|
TZ=Europe/Amsterdam
|
|
|
|
POSTGRES_HOST=postgres
|
|
POSTGRES_PORT=5432
|
|
POSTGRES_DB=clearview
|
|
POSTGRES_USER=clearview
|
|
# No default — set this in Portainer's stack environment, or the stack won't start.
|
|
POSTGRES_PASSWORD=
|
|
|
|
# Optional: Microsoft onboarding OAuth (leave blank if unused).
|
|
ONBOARDING_CLIENT_ID=
|
|
ONBOARDING_CLIENT_SECRET=
|
|
ONBOARDING_REDIRECT_URI=
|