veilstream-demo/docker-compose.yml
Mathew Lewis 47fe3c33e6 Add compose demo app for VeilStream preview testing
web (node) renders the seeded customers table plus container hostname.
db (postgres:16-alpine) seeds five PII-shaped rows from db/init.sql.
2026-08-26 22:08:17 -07:00

27 lines
581 B
YAML

services:
web:
build:
context: ./web
ports:
- "3000:3000"
environment:
DATABASE_URL: postgres://demo:demo@db:5432/demo
APP_LABEL: "VeilStream demo"
depends_on:
db:
condition: service_healthy
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: demo
POSTGRES_PASSWORD: demo
POSTGRES_DB: demo
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U demo -d demo"]
interval: 5s
timeout: 3s
retries: 20