From c0bb4f66cc7c8c4cf32972938f182d4936e2aee2 Mon Sep 17 00:00:00 2001 From: Mathew Lewis Date: Wed, 26 Aug 2026 23:09:24 -0700 Subject: [PATCH] Restore the build-based compose on main --- docker-compose.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index cf55019..d015091 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,15 @@ services: web: - image: nginx:alpine + build: + context: ./web ports: - - "80:80" + - "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 @@ -10,6 +17,8 @@ services: 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