-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
28 lines (27 loc) · 1.16 KB
/
docker-compose.yml
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
version: "3.3"
services:
jupyter:
build:
context: ./jupyter
args:
DOCKER_UID: ${DOCKER_UID}
DOCKER_GID: ${DOCKER_GID}
DOCKER_USER: ${DOCKER_USER}
DOCKER_PASSWORD: ${DOCKER_PASSWORD}
container_name: deform_pred_multi_env_jupyter_${DOCKER_USER}
environment:
- DISPLAY=${MY_DISPLAY}
- NVIDIA_VISIBLE_DEVICES=${NVIDIA_VISIBLE_DEVICES}
- NVIDIA_DRIVER_CAPABILITIES=${NVIDIA_DRIVER_CAPABILITIES}
- TZ=Asia/Tokyo
ports:
- "${HOST_JUPYTER_PORT}:${CONTAINER_JUPYTER_PORT}"
- "${HOST_TENSORBOARD_PORT}:${CONTAINER_TENSORBOARD_PORT}" # TensorBoard用
volumes:
- .:/tf/workspace/deformation-prediction-multi-environment
- /mnt/nas/kodera/deformation_prediction_multi_environment:/tf/nas
- /tmp/.X11-unix:/tmp/.X11-unix
working_dir: /tf/workspace/deformation-prediction-multi-environment
command: >
bash -c "jupyter lab --no-browser --ip=0.0.0.0 --allow-root --port=${CONTAINER_JUPYTER_PORT} --NotebookApp.token='' &
tensorboard --logdir /tf/workspace/deformation-prediction-multi-environment/logs --host 0.0.0.0 --port=${CONTAINER_TENSORBOARD_PORT}"