first commit
This commit is contained in:
31
docker-compose.yml
Normal file
31
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user