-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (57 loc) · 1.81 KB
/
docker-compose.yml
File metadata and controls
72 lines (57 loc) · 1.81 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.8'
services:
fmriprep-workbench:
image: shawnschwartz/fmriprep-workbench:latest
container_name: fmriprep-workbench
hostname: fmriprep-workbench
# Run as current user to maintain file permissions
user: "${UID:-1000}:${GID:-1000}"
# Keep container running
command: sleep infinity
# Interactive terminal
stdin_open: true
tty: true
# Volume mounts
volumes:
# Workspace (current directory)
- ./:/opt/fmriprep-workbench/workspace:rw
# Configuration files
- ./config.yaml:/data/config/config.yaml:ro
- ./all-subjects.txt:/data/subjects/all-subjects.txt:ro
# Logs directory
- ./logs:/data/logs:rw
# Cache directories (host home directory)
- ${HOME}/.cache/templateflow:/data/cache/templateflow:rw
- ${HOME}/.cache/fmriprep:/data/cache/fmriprep:rw
# Optional: Mount study data directories
# Uncomment and modify paths as needed
# - /path/to/your/study:/data/study:rw
# - /path/to/containers:/data/containers:ro
# Environment variables
environment:
- WORKBENCH_WORKSPACE=/opt/fmriprep-workbench/workspace
- WORKBENCH_VERSION=0.2.0
- FSLDIR=/usr/share/fsl/5.0
- FSLOUTPUTTYPE=NIFTI_GZ
- PATH=/usr/share/fsl/5.0/bin:/opt/fmriprep-workbench:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Resource limits (adjust as needed)
deploy:
resources:
limits:
cpus: '8'
memory: 16G
reservations:
cpus: '2'
memory: 4G
# Restart policy
restart: unless-stopped
# Network mode
network_mode: bridge
# Named volumes (optional, for persistent data)
volumes:
templateflow_cache:
fmriprep_cache:
# Networks (optional)
networks:
default:
name: fmriprep-workbench-network