build: modify dockerfile to serve demo instance as static webpage

This commit is contained in:
2025-07-12 02:31:44 +02:00
parent 0a7e92be06
commit 4b47cf9c96
3 changed files with 30 additions and 28 deletions

View File

@ -3,20 +3,4 @@ services:
app:
build: .
ports:
- 3000:3000
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres
depends_on:
- db
env_file:
- ./server/.env
command: /bin/sh -c "npx prisma db push && node index.js"
db:
image: postgres
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
postgres-data:
- 3000:80