Upload files to "backend"

This commit is contained in:
2025-09-11 21:14:13 +02:00
parent 865bc6aa3b
commit 0d03d9710b
4 changed files with 265 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
version: "3.9"
services:
db:
image: postgres:15
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- dbdata:/var/lib/postgresql/data
backend:
build: ./backend
environment:
DATABASE_URL: postgresql+asyncpg://postgres:postgres@db:5432/postgres
depends_on:
- db
ports:
- "8000:8000"
frontend:
working_dir: /app
image: node:20
command: sh -c "npm i && npx nuxt dev -p 3000 -H 0.0.0.0"
volumes:
- ./frontend:/app
ports:
- "3000:3000"
depends_on:
- backend
volumes:
dbdata: