This repository has been archived on 2026-06-19. You can view files and clone it, but cannot push or open issues or pull requests.
clearview/stack/docker-compose.yml
Ivo Oskamp ee66a8cfc3 Clearview stack: Postgres config + TZ in env, only pin Postgres image
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>
2026-06-19 13:34:24 +02:00

47 lines
1.8 KiB
YAML

services:
clearview:
image: gitea.oskamp.info/ivooskamp/clearview:${CLEARVIEW_IMAGE_TAG:?set CLEARVIEW_IMAGE_TAG to dev or latest}
container_name: clearview-${CLEARVIEW_ENV:?set CLEARVIEW_ENV to dev or prod}
restart: unless-stopped
ports:
- "${CLEARVIEW_PORT:?set CLEARVIEW_PORT}:80"
environment:
TZ: ${TZ:?set TZ}
DATABASE_URL: postgresql://${POSTGRES_USER:?set POSTGRES_USER}:${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD}@${POSTGRES_HOST:?set POSTGRES_HOST}:${POSTGRES_PORT:?set POSTGRES_PORT}/${POSTGRES_DB:?set POSTGRES_DB}
ONBOARDING_CLIENT_ID: ${ONBOARDING_CLIENT_ID}
ONBOARDING_CLIENT_SECRET: ${ONBOARDING_CLIENT_SECRET}
ONBOARDING_REDIRECT_URI: ${ONBOARDING_REDIRECT_URI}
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16-alpine
container_name: clearview-postgres-${CLEARVIEW_ENV:?set CLEARVIEW_ENV to dev or prod}
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:?set POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER:?set POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD}
TZ: ${TZ:?set TZ}
volumes:
- /docker/appdata/clearview-${CLEARVIEW_ENV}/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
adminer:
image: adminer:4-standalone
container_name: clearview-adminer-${CLEARVIEW_ENV:?set CLEARVIEW_ENV to dev or prod}
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
ports:
- "${ADMINER_PORT:?set ADMINER_PORT}:8080"
environment:
ADMINER_DEFAULT_SERVER: ${POSTGRES_HOST:?set POSTGRES_HOST}