first commit

This commit is contained in:
DerJesen
2025-12-10 20:20:39 +01:00
commit c24927fab1
136 changed files with 32253 additions and 0 deletions

31
docker-compose.yml Normal file
View File

@@ -0,0 +1,31 @@
services:
backend:
build: ./Smartes-Klassenzimmer-Backend
restart: always
ports:
- "3000:3000"
environment:
DATABASE_URL: ${DATABASE_URL}
JWT_SECRET: ${JWT_SECRET}
PORT: 3000
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
SMTP_USER: ${SMTP_USER}
SMTP_PASS: ${SMTP_PASS}
SMTP_FROM: ${SMTP_FROM}
volumes:
- ./Smartes-Klassenzimmer-Backend/uploads:/app/uploads
frontend:
build: ./Smartes-Klassenzimmer-Frontend
restart: always
ports:
- "80:3000"
environment:
PORT: 3000
# URL used for server-side rendering (SSR) calls to the backend
VITE_INTERNAL_API_URL: http://backend:3000/api
# Origin URL for SvelteKit (CSRF protection)
ORIGIN: http://localhost
depends_on:
- backend