Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (66 loc) · 2.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (66 loc) · 2.01 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
services:
foundation:
image: synerbi/jupyter:foundation-cpu
build:
context: docker/docker-stacks/images/docker-stacks-foundation
args:
ROOT_IMAGE: ubuntu:24.04
PYTHON_VERSION: 3.12
base:
image: synerbi/jupyter:base-cpu
build:
context: docker/docker-stacks/images/base-notebook
args: {BASE_IMAGE: hello-world}
additional_contexts: {hello-world: service:foundation}
minimal:
image: synerbi/jupyter:minimal-cpu
build:
context: docker/docker-stacks/images/minimal-notebook
args: {BASE_IMAGE: hello-world}
additional_contexts: {hello-world: service:base}
scipy:
image: synerbi/jupyter:scipy-cpu
build:
context: docker/docker-stacks/images/scipy-notebook
args: {BASE_IMAGE: hello-world}
additional_contexts: {hello-world: service:minimal}
sirf-build:
image: synerbi/jupyter:sirf-build-cpu
build:
context: .
target: build
args:
Gadgetron_USE_CUDA: "OFF"
BUILD_GPU: 0
BASE_IMAGE: hello-world
additional_contexts: {hello-world: service:scipy}
sirf:
container_name: sirf # for scaling, comment this out https://github.com/docker/compose/issues/3729
image: synerbi/sirf:latest
build:
context: .
target: sirf
args:
Gadgetron_USE_CUDA: "OFF"
BUILD_GPU: 0
BASE_IMAGE: hello-world
additional_contexts: {hello-world: service:scipy, build: service:sirf-build}
cache_from: [synerbi/jupyter:sirf-build-cpu]
stdin_open: true
tty: true
# Probably requires `export USER_ID UID` to work.
# Alternatively replace with the output of `id -u`.
user: ${USER_ID:-${UID:-${USER:-1000}}}
group_add: [users]
environment:
# CLI arguments for https://github.com/SyneRBI/SIRF-Exercises/blob/master/scripts/download_data.sh
SIRF_DOWNLOAD_DATA_ARGS: ''
volumes: [./docker/devel:/home/jovyan/work]
restart: unless-stopped
ports:
- "9002:9002" # gadgetron
- "9999:8888" # jupyter
# for scaling, use this instead for random port assignment
# (https://github.com/docker/compose/issues/2260):
#- "9000-9099:9002"
#- "8800-8899:8888"