48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
version: '3.9'
|
|
|
|
services:
|
|
idear_processor_networked:
|
|
image: idear_processor
|
|
restart: unless-stopped
|
|
environment:
|
|
- DOCKER_CONTAINER=1
|
|
- NETWORK_MOUNT=/mnt/network_mount
|
|
ports:
|
|
- "${JUPYTER_PORT:-8889}:8888"
|
|
volumes:
|
|
- ./data:/idear/data
|
|
- ./figures:/idear/figures
|
|
- ./notebooks:/idear/notebooks
|
|
- ./scripts:/idear/scripts
|
|
- network_mount:/mnt/network_mount:rw
|
|
command: >
|
|
bash -c "
|
|
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token='${JUPYTER_TOKEN:-my-token}'
|
|
"
|
|
profiles:
|
|
- networked
|
|
|
|
idear_processor:
|
|
image: idear_processor
|
|
restart: unless-stopped
|
|
environment:
|
|
- DOCKER_CONTAINER=1
|
|
- NETWORK_MOUNT=/idear/data
|
|
ports:
|
|
- "${JUPYTER_PORT:-8889}:8888"
|
|
volumes:
|
|
- ./:/idear
|
|
command: >
|
|
bash -c "
|
|
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token='${JUPYTER_TOKEN:-my-token}'
|
|
"
|
|
profiles:
|
|
- local-only
|
|
|
|
volumes:
|
|
network_mount:
|
|
driver_opts:
|
|
type: cifs
|
|
o: "username=${CIFS_USER},password=${CIFS_PASS},vers=3.0"
|
|
device: "${NETWORK_MOUNT}"
|