27 lines
593 B
YAML
27 lines
593 B
YAML
services:
|
|
web:
|
|
build:
|
|
context: ./web
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
DATABASE_URL: postgres://demo:demo@db:5432/demo
|
|
APP_LABEL: "VeilStream demo main-retest"
|
|
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
|