29 lines
736 B
YAML
29 lines
736 B
YAML
|
|
version: '3.8'
|
||
|
|
|
||
|
|
services:
|
||
|
|
backend:
|
||
|
|
build:
|
||
|
|
context: ./reading-platform-backend
|
||
|
|
container_name: kindergarten-backend
|
||
|
|
restart: unless-stopped
|
||
|
|
ports:
|
||
|
|
- "3001:3001"
|
||
|
|
environment:
|
||
|
|
- PORT=3001
|
||
|
|
- NODE_ENV=production
|
||
|
|
- DATABASE_URL=file:/app/prisma/dev.db
|
||
|
|
- JWT_SECRET=${JWT_SECRET:-change-this-secret}
|
||
|
|
- JWT_EXPIRES_IN=7d
|
||
|
|
- FRONTEND_URL=http://localhost:8080
|
||
|
|
- PRISMA_QUERY_ENGINE_LIBRARY=/app/node_modules/.prisma/client/libquery_engine-linux-musl-openssl-3.0.x.so.node
|
||
|
|
|
||
|
|
frontend:
|
||
|
|
build:
|
||
|
|
context: ./reading-platform-frontend
|
||
|
|
container_name: kindergarten-frontend
|
||
|
|
restart: unless-stopped
|
||
|
|
ports:
|
||
|
|
- "8080:80"
|
||
|
|
depends_on:
|
||
|
|
- backend
|