forked from 1EdTech/OpenCASE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
24 lines (23 loc) · 892 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
24 lines (23 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Development overrides for hot-reload
# Usage: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
#
# This enables:
# - OpenCASE: ts-node-dev auto-restart on source changes
# - Editor: Already has Vite HMR via volume mounts in base compose
#
# Networking (HTTP/HTTPS, ports) is controlled by .env — not this file.
services:
opencase:
# Use dev Dockerfile instead of production build
build:
context: ./apps/opencase
dockerfile: Dockerfile.dev
volumes:
# Mount source code for hot-reload (ts-node-dev watches these)
- ./apps/opencase/src:/app/src:ro
# Mount tsconfig for TypeScript compilation
- ./apps/opencase/tsconfig.json:/app/tsconfig.json:ro
# Data directory (already in base, but explicit here)
- ./apps/opencase/data:/app/data
# Remove restart policy for dev (fail fast, see errors)
restart: "no"