-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
85 lines (79 loc) · 2.36 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
74
75
76
77
78
79
80
81
82
83
84
85
---
version: '3.3'
secrets:
registry_auth:
file: ./registry/files/auth/htpasswd
registry_ssl_key:
file: ./registry/files/ssl/registry_ssl_key.pem
jupyterhub_ssl_key:
file: ./jupyterhub/files/ssl/jupyterhub_ssl_key.pem
jupyterhub_secret_cookie:
file: ./jupyterhub/files/jupyterhub_cookie_secret
jupyterhub_proxy_auth_token:
file: ./jupyterhub/files/jupyterhub_proxy_auth_token
configs:
registry_ssl_certificate:
file: ./registry/files/ssl/registry_cert.crt
jupyterhub_ssl_certificate:
file: ./jupyterhub/files/ssl/jupyterhub_ssl_cert.crt
jupyterhub_configuration:
file: ./jupyterhub/files/jupyterhub_config.py
jupyterhub_entrypoint:
file: ./jupyterhub/files/entrypoint.sh
jupyterhub_userlist:
file: ./jupyterhub/files/user_list.txt
networks:
dlcc_network:
volumes:
jupyterhub_volume:
labels:
- "docker.volume.description=JupyterHub Docker Volume"
- "docker.volume.name=volume.jupyterhub"
registry_volume:
labels:
- "docker.volume.description=Registry Docker Volume"
- "docker.volume.name=volume.registry"
services:
registry:
image: registry:2.6.2
networks:
dlcc_network:
aliases:
- container.docker.registry
ports:
- "5000:5000"
volumes:
- registry_volume:/var/lib/registry
environment:
- GUNICORN_OPTS=["--preload"]
jupyterhub:
build:
context: ./files/jupyterhub
image: localhost:5000/dlcc/jupyterhub:latest
networks:
dlcc_network:
aliases:
- container.docker.jupyterhub
ports:
- "443:443"
volumes:
- "jupyterhub_volume:/srv/jupyterhub"
secrets:
- source: jupyterhub_ssl_key
target: /srv/jupyterhub/ssl/jupyterhub_ssl_key.pem
- source: jupyterhub_secret_cookie
target: /srv/jupyterhub/jupyterhub_cookie_secret
mode: 0600
- source: jupyterhub_proxy_auth_token
target: /srv/jupyterhub/jupyterhub_proxy_auth_token
mode: 0600
configs:
- source: jupyterhub_ssl_certificate
target: /srv/jupyterhub/ssl/jupyterhub_ssl_cert.crt
- source: jupyterhub_configuration
target: /srv/jupyterhub/jupyterhub_config.py
- source: jupyterhub_userlist
target: /srv/jupyterhub/user_list.txt
- source: jupyterhub_entrypoint
target: /srv/jupyterhub/entrypoint.sh
mode: 0774