-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (62 loc) · 2.26 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
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
# JupyterHub docker-compose configuration file
# run `sudo -E docker-compose up -d` for daemon mode with env vars from the shell
version: "2"
services:
hub:
build:
context: .
dockerfile: Dockerfile.jupyterhub
args:
JUPYTERHUB_VERSION: ${JUPYTERHUB_VERSION}
image: jupyterhub
container_name: jupyterhub
volumes:
# Bind Docker socket on the host so we can connect to the daemon from
# within the container
- "/var/run/docker.sock:/var/run/docker.sock:rw"
# Bind Docker volume on host for JupyterHub database and cookie secrets
# in form "/path/on/host:/path/on/container"
- "/home/ubuntu/data:${DATA_VOLUME_CONTAINER}"
ports:
# - "443:443"
- "80:80"
environment:
# All containers will join this network
DOCKER_NETWORK_NAME: ${DOCKER_NETWORK_NAME}
# JupyterHub will spawn this Notebook image for users
DOCKER_NOTEBOOK_IMAGE: ${DOCKER_NOTEBOOK_IMAGE}
# Notebook directory inside user image
DOCKER_NOTEBOOK_DIR: ${DOCKER_NOTEBOOK_DIR}
# Data directory inside the user image
DATA_VOLUME_CONTAINER: ${DATA_VOLUME_CONTAINER}
# Using this run command (optional)
DOCKER_SPAWN_CMD: ${DOCKER_SPAWN_CMD}
AUTH0_DOMAIN: hms-dbmi
# these should be set in the environment of the machine running Docker
AUTH0_CLIENT_ID: ${AUTH0_CLIENT_ID}
AUTH0_CLIENT_SECRET: ${AUTH0_CLIENT_SECRET}
AUTH0_CALLBACK_URL: ${AUTH0_CALLBACK_URL}
S3_ENCRYPT_KEY: ${S3_ENCRYPT_KEY}
ADMIN_EMAILS: ${ADMIN_EMAILS}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_NOTEBOOK_BUCKET: ${AWS_NOTEBOOK_BUCKET}
AWS_TEMPLATE_BUCKET: ${AWS_TEMPLATE_BUCKET}
AWS_RAW_FILE_BUCKET: ${AWS_RAW_FILE_BUCKET}
AWS_PROC_FILE_BUCKET: ${AWS_PROC_FILE_BUCKET}
AWS_OPEN_DATA_BUCKET: ${AWS_OPEN_DATA_BUCKET}
FF_ACCESS_KEY: ""
FF_ACCESS_SECRET: ""
INIT_ERR_OUTPUT: ""
FF_TRACKING_ID: ""
GLOBAL_ENV_BUCKET: ${GLOBAL_ENV_BUCKET}
volumes:
data:
external:
name: ${DATA_VOLUME_HOST}
networks:
default:
external:
name: ${DOCKER_NETWORK_NAME}