-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (46 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
54 lines (46 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# =============================================================================
# InterSubMod Docker Compose Configuration
# =============================================================================
# Usage:
# docker-compose up -d # Start development environment
# docker-compose exec dev bash # Enter container shell
# docker-compose down # Stop and remove container
# =============================================================================
version: "3.8"
services:
dev:
build:
context: .
dockerfile: Dockerfile.dev
image: intersubmod:dev
container_name: intersubmod-dev
# Keep container running
stdin_open: true
tty: true
# Mount volumes
volumes:
# Source code (read-write)
- .:/workspace:rw
# Data directory (read-only for safety, can be changed to rw if needed)
- ${DATA_PATH:-./data}:/workspace/data:ro
# Output directory (read-write)
- ${OUTPUT_PATH:-./output}:/workspace/output:rw
# Build directory (named volume for persistence)
- intersubmod-build:/workspace/build
# Working directory
working_dir: /workspace
# Environment variables
environment:
- MPLBACKEND=Agg
- PYTHONUNBUFFERED=1
- OMP_NUM_THREADS=${OMP_NUM_THREADS:-8}
# Resource limits (optional, adjust based on your system)
# deploy:
# resources:
# limits:
# cpus: '8'
# memory: 32G
# Named volumes
volumes:
intersubmod-build:
name: intersubmod-build