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 f144261a1a Clearview stack: require env values (no defaults) + per-env naming
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>
2026-06-19 13:19:33 +02:00

47 lines
1.6 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: Europe/Amsterdam
DATABASE_URL: postgresql://clearview:${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD}@postgres:5432/clearview
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: clearview
POSTGRES_USER: clearview
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD}
TZ: Europe/Amsterdam
volumes:
- /docker/appdata/clearview-${CLEARVIEW_ENV}/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U clearview -d clearview"]
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