Restore the build-based compose on main
This commit is contained in:
parent
96099dd42b
commit
c0bb4f66cc
@ -1,8 +1,15 @@
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
image: nginx:alpine
|
build:
|
||||||
|
context: ./web
|
||||||
ports:
|
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:
|
db:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
@ -10,6 +17,8 @@ services:
|
|||||||
POSTGRES_USER: demo
|
POSTGRES_USER: demo
|
||||||
POSTGRES_PASSWORD: demo
|
POSTGRES_PASSWORD: demo
|
||||||
POSTGRES_DB: demo
|
POSTGRES_DB: demo
|
||||||
|
volumes:
|
||||||
|
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U demo -d demo"]
|
test: ["CMD-SHELL", "pg_isready -U demo -d demo"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user