-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
55 lines (53 loc) · 1.81 KB
/
docker-compose-dev.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
services:
cogstack-jupyter-hub:
build: ./Dockerfile_hub
container_name: cogstack-jupyter-hub-dev
restart: always
environment:
- http_proxy=$HTTP_PROXY
- https_proxy=$HTTPS_PROXY
- no_proxy=$NO_PROXY
- JUPYTERHUB_INTERNAL_PORT=${JUPYTERHUB_INTERNAL_PORT:-8888}
- JUPYTERHUB_INTERNAL_PROXY_API_PORT=${JUPYTERHUB_INTERNAL_PROXY_API_PORT:-8887}
- JUPYTERHUB_SSL_PORT=${JUPYTERHUB_SSL_PORT:-443}
env_file:
- ./env/general.env
- ./env/jupyter.env
volumes:
- jupyter-hub-shared-scratch:/home/jovyan/scratch
- jupyter-hub-vol:/srv/jupyterhub
# Security configs
- ./${DEFAULT_SECURITY_DIR:-./security/}root-ca.key:/srv/jupyterhub/root-ca.key:ro
- ./${DEFAULT_SECURITY_DIR:-./security/}root-ca.pem:/srv/jupyterhub/root-ca.pem:ro
- ./config/jupyterhub_cookie_secret:/srv/jupyterhub/jupyterhub_cookie_secret:ro
# User list and jupyter config
- ./config/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py:ro
- ./config/userlist:/srv/jupyterhub/userlist:ro
- ./config/teamlist:/srv/jupyterhub/teamlist:ro
# Give access to Docker socket
- /var/run/docker.sock:/var/run/docker.sock
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 262144
ports:
- "${JUPYTERHUB_INTERNAL_PORT:-8888}:${JUPYTERHUB_SSL_PORT:-443}"
networks:
- cognet
extra_hosts:
- ${ELASTICSEARCH_1_HOST_NAME:-test-1:0.0.0.0}
- ${ELASTICSEARCH_2_HOST_NAME:-test-2:0.0.0.0}
- ${ELASTICSEARCH_3_HOST_NAME:-test-3:0.0.0.0}
- ${KIBANA_HOST_NAME:-test-4:0.0.0.0}
- ${NIFI_HOST_NAME:-test-5:0.0.0.0}
volumes:
jupyter-hub-vol:
driver: local
jupyter-hub-shared-scratch:
driver: local
networks:
cognet:
name: cogstack-net