-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
73 lines (72 loc) · 2.61 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
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
73
# Following https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html
# And https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html#docker-options
version: '3.8'
services:
jupyter-cmf-notebook:
build:
dockerfile: Dockerfile
context: ./
container_name: jupyter-cmf-notebook
hostname: jupyter-cmf-notebook
#workspace is the directory from your home folder that
#will be mounted inside the docker conatiner with cmf pre-installed
#dvc_remote is the remote data store for dvc
#your .ssh folder is mounted inside the docker conatiner
#to enable you to push and pull code from git
#To-Do
# Create these directories in your home folder
#1. mkdir $HOME/workspace
#2. mkdir $HOME/dvc_remote
#or
#Change the below lines to relect the appropriate directories
#1. If your workspace is named "experiment" change the below line
#$HOME/workspace:/home/jovyan/workspace to
#$HOME/experiment:/home/jovyan/wokspace
#2. If your remote is /extmount/data change the line
#$HOME/dvc_remote:/home/jovyan/dvc_remote to
#/extmount/data:/home/jovyan/dvc_remote
volumes:
- $HOME/workspace:/home/jovyan/workspace
- $HOME/dvc_remote:/home/jovyan/dvc_remote
- $HOME/.ssh:/home/jovyan/.ssh
ports:
- "8888:8888"
user: root
#working_dir: /home/$USER
environment:
- NB_USER=$USER
- NB_GROUP=$GROUP
- NB_UID=$UID
- NB_GID=$GID
- CHOWN_HOME=yes
- CHOWN_HOME_OPTS= -R
- GRANT_SUDO=yes
- DOCKER_STACKS_JUPYTER_CMD=lab
- JUPYTER_TOKEN=docker
- JUPYTER_ENABLE_LAB=yes
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} # from .env file
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} #from .env file
- DVC_REMOTE_URL=${DVC_REMOTE_URL} #from .env file
- GIT_USER_NAME=${GIT_USER_NAME} # from .env file
- GIT_USER_EMAIL=${GIT_USER_EMAIL} #from .env file
- GIT_REMOTE_URL=${GIT_REMOTE_URL} #from .env file
- GIT_BRANCH=${GIT_BRANCH} #from .env file
- DB_URL=mysql://db:33060
- DB_PASSWORD=${MYSQL_ROOT_PASSWORD} #from .env file
- NEO4J=TRUE
- NEO4J_URI=bolt://neo4j:7687
- NEO4J_USER_NAME=${NEO4J_USER_NAME} #from .env file
- NEO4J_PASSWD=${NEO4J_PASSWD} #from .env file
- HTTP_PROXY=${HTTP_PROXY} #from .env file
- HTTPS_PROXY=${HTTPS_PROXY} #from .env file
depends_on:
- neo4j
neo4j:
image: neo4j:4.4
container_name: neo4j
hostname: neo4j
ports:
- "7475:7474"
- "7688:7687"
environment:
- NEO4J_AUTH=${NEO4J_USER_NAME}/${NEO4J_PASSWD}