31 lines
817 B
YAML
31 lines
817 B
YAML
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 |