33 lines
664 B
YAML
33 lines
664 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: api
|
|
ports:
|
|
- "3001:3001"
|
|
environment:
|
|
- DATABASE_URL=file:./dev.db
|
|
- JWT_SECRET=dev-jwt-secret-change-in-production
|
|
- JWT_REFRESH_SECRET=dev-refresh-secret-change-in-production
|
|
- PORT=3001
|
|
- CORS_ORIGIN=http://localhost:3000
|
|
volumes:
|
|
- api-data:/app/prisma
|
|
|
|
dashboard:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: dashboard
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- NEXT_PUBLIC_API_URL=http://localhost:3001/api/v1
|
|
depends_on:
|
|
- api
|
|
|
|
volumes:
|
|
api-data: |