Restore the build-based compose on main

This commit is contained in:
Mathew Lewis 2026-08-26 23:09:24 -07:00
parent 96099dd42b
commit c0bb4f66cc

View File

@ -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