Remove silent defaults (every per-deploy value via ${VAR:?}), hardcode the
fixed structural constants in compose, and key container names + the Postgres
data dir off CLEARVIEW_ENV (dev/prod) so dev and prod stacks coexist. Image tag
stays CLEARVIEW_IMAGE_TAG (dev/latest).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
29 lines
1.2 KiB
Bash
29 lines
1.2 KiB
Bash
# Clearview stack environment.
|
|
#
|
|
# Only the values that genuinely differ per deployment live here; everything
|
|
# structural (DB name/user, internal host/port, TZ) is fixed in the compose
|
|
# file. The compose uses ${VAR:?...} for required values, so the stack REFUSES
|
|
# to start when a required variable is missing — there are no silent defaults.
|
|
#
|
|
# This file is the dev baseline. For the prod stack, override CLEARVIEW_IMAGE_TAG
|
|
# (latest), CLEARVIEW_ENV (prod) and the ports in Portainer's stack environment.
|
|
#
|
|
# CLEARVIEW_IMAGE_TAG drives the image tag; CLEARVIEW_ENV drives the container
|
|
# names (clearview-<env>, clearview-postgres-<env>, clearview-adminer-<env>) and
|
|
# the Postgres data dir (/docker/appdata/clearview-<env>/postgres), so a dev and
|
|
# a prod stack run side by side without clashing.
|
|
|
|
CLEARVIEW_IMAGE_TAG=dev
|
|
CLEARVIEW_ENV=dev
|
|
CLEARVIEW_PORT=8080
|
|
ADMINER_PORT=8081
|
|
|
|
# --- Required, NOT shipped here (set in Portainer's stack environment) -------
|
|
# The stack will not start until POSTGRES_PASSWORD is provided.
|
|
# POSTGRES_PASSWORD=...
|
|
|
|
# --- Optional: Microsoft onboarding OAuth (leave unset if unused) ------------
|
|
# ONBOARDING_CLIENT_ID=...
|
|
# ONBOARDING_CLIENT_SECRET=...
|
|
# ONBOARDING_REDIRECT_URI=...
|