Skip to content

Commit

Permalink
fixed missing aligned notebook folder
Browse files Browse the repository at this point in the history
  • Loading branch information
DrSnowbird authored and DrSnowbird committed May 18, 2022
1 parent 80f9a61 commit 91e52ff
Show file tree
Hide file tree
Showing 43 changed files with 67 additions and 16,945 deletions.
8 changes: 6 additions & 2 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,9 @@ DOCKER_HOST_NAME={{DOCKER_HOST_NAME}}
#### --- TO-DO HERE: Modify the line below to open the ports mapping: -- ####
#############################################################################
##VOLUMES_LIST="data workspace /dev/shm:/dev/shm /var/run/docker.sock:/var/run/docker.sock"
#VOLUMES_LIST="data workspace"
# #PORTS_LIST="3000"
#VOLUMES_LIST="data workspace

## -- Tensorflow board is at 6006 (host port) --
## -- Jupyter Web UI is at 8888 (host port) --
#PORTS_LIST="6006:6006 8888:8888"

91 changes: 61 additions & 30 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,78 @@
version: '3'
version: '3.1'

services:
cuda-pytorch-docker:
container_name: cuda-pytorch-docker
image: openkbs/cuda-pytorch-docker
build:
context: .
dockerfile: Dockerfile
restart: always
env_file:
- ./.env
environment:
## ==== Jupyter Notebook Specifics: ====
#- PASSWORD=${PASSWORD:-ChangeMe!}
#- ENABLE_HTTPS=${ENABLE_HTTPS:-false}
## ==== Common Container Setup: ====
- CONTAINER_NAME=cuda-pytorch-docker
- USER_ID=${USER_ID:-1000}
- GROUP_ID=${GROUP_ID:-1000}
# - APP_HOME=${APP_HOME:-/home/developer/app}
# - APP_MAIN=${APP_MAIN:-setup.sh}
#- DOCKER_HOST_IP=${DOCKER_HOST_IP:-127.0.0.1}
#- DOCKER_HOST_NAME=${DOCKER_HOST_NAME:-localhost}
restart: always
gpus: all
ports:
- 6006:6006
- 8888:8888
env_file:
- ./.env
- DOCKER_HOST_IP=${DOCKER_HOST_IP:-192.168.0.124}
- DOCKER_HOST_NAME=${DOCKER_HOST_NAME:-aurora}
# ==== X11 Use only ====
#- DISPLAY=$DISPLAY
#- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
# ==== vnc/no-vnc ====
#- WINDOW_MANAGER=xfce
#- VNC_RESOLUTION=1280x800
#- VNC_PW=vncpassword
## -------------------------------
## -- Audio sound setup:
## -------------------------------
#group_add:
# - audio
#devices:
# - "/dev/snd:/dev/snd"
## -------------------------------------------
## -- Change to your specific Volumes Mapping:
## -------------------------------------------
volumes:
## ==== Common Container mapping: ====
# - /etc/hosts:/etc/hosts
# - /dev/shm:/dev/shm
# - /var/run/docker.sock:/var/run/docker.sock
# - /tmp/.X11-unix:/tmp/.X11-unix
## ==== Corporate Proxies Gateway Relay: ====
## ==== Common mapping: ====
- /etc/hosts:/etc/hosts
- /dev/shm:/dev/shm
#- /tmp/.X11-unix:/tmp/.X11-unix
- /var/run/docker.sock:/var/run/docker.sock
#- ./certificates:/home/developer/certificates
## ==== Use $HOME/data-docker as User's base directory: ====
#- $HOME/data-docker/cuda-pytorch-docker/data:/home/developer/data
#- $HOME/data-docker/cuda-pytorch-docker/workspace:/home/developer/workspace
## ==== Use current directory as User's base directory: ====
- ~/data-docker/cuda-pytorch-docker/notebooks:/home/developer/notebooks
- ~/data-docker/cuda-pytorch-docker/data:/home/developer/data
- ~/data-docker/cuda-pytorch-docker/logs:/home/developer/logs
- ~/data-docker/cuda-pytorch-docker/workspace:/home/developer/workspace
#- ./notebooks:/home/developer/notebooks
## ==== Use $HOME/data-docker as base directory: ====
- $HOME/data-docker/cuda-pytorch-docker/data:/home/developer/data
- $HOME/data-docker/cuda-pytorch-docker/workspace:/home/developer/workspace
## ==== Use current directory as root for mapping Volumes: ====
## (You need to manually create those child directory: ./data, ./workspace, and others)
#- ./data:/home/developer/data
#- ./logs:/home/developer/logs
#- ./workspace:/home/developer/workspace
## ==== App's additional mapping Volumes: ====

## -------------------------------
## -- Change to your specific port
## -------------------------------
# ports:
# - "12345:12345"
ports:
- "6006:6006"
- "8888:8888"

## -----------------------------
## -- Network setup if needed --
## -----------------------------
# networks:
# - dev_network

#volumes:
# cuda-pytorch-docker_volume:
# external: false

#networks:
# dev_network:
# external:
# name: dev_network


1 change: 0 additions & 1 deletion docker-compose.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ services:
context: .
dockerfile: Dockerfile
restart: always
gpus: all
env_file:
- ./.env
environment:
Expand Down
Loading

0 comments on commit 91e52ff

Please sign in to comment.