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 4b05c48a73 Clearview stack: drop ONBOARDING_* passthrough from compose
Config belongs in the database (fixed convention); the stack carries only what
the app needs to start. Onboarding is no longer wired through the compose.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 13:39:22 +02:00

44 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: ${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}
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}