-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-local-registry.yml
78 lines (73 loc) · 2.38 KB
/
docker-compose-local-registry.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
---
version: '3.3'
secrets:
jupyterhub_ssl_key:
file: ./files/jupyterhub/ssl/jupyterhub_ssl_key.pem
jupyterhub_secret_cookie:
file: ./files/jupyterhub/jupyterhub_cookie_secret${DOCKER_JUPYTERHUB_LOCAL_ENV}
jupyterhub_proxy_auth_token:
file: ./files/jupyterhub/jupyterhub_proxy_auth_token${DOCKER_JUPYTERHUB_LOCAL_ENV}
jupyterhub_oauth_secret:
file: ./files/jupyterhub/jupyterhub_oauth_github_secret${DOCKER_JUPYTERHUB_LOCAL_ENV}
jupyterhub_userlist:
file: ./files/jupyterhub/user_list.txt
configs:
jupyterhub_ssl_certificate:
file: ./files/jupyterhub/ssl/jupyterhub_ssl_cert.crt
jupyterhub_configuration:
file: ./files/jupyterhub/jupyterhub_config.py
jupyterhub_entrypoint:
file: ./files/jupyterhub/entrypoint.sh
networks:
dlcc_network:
volumes:
jupyterhub_volume:
labels:
- "docker.volume.description=JupyterHub Docker Volume"
- "docker.volume.name=volume.jupyterhub"
services:
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"
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
env_file:
- "./files/jupyterhub/compose${DOCKER_JUPYTERHUB_LOCAL_ENV}.env"
deploy:
labels:
swarm.service.label.service.name: "jupyterhub"
placement:
constraints:
- node.role == manager
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
- source: jupyterhub_oauth_secret
target: /srv/jupyterhub/jupyterhub_oauth_github_secret
mode: 0600
- source: jupyterhub_userlist
target: /srv/jupyterhub/user_list.txt
configs:
- source: jupyterhub_ssl_certificate
target: /srv/jupyterhub/ssl/jupyterhub_ssl_cert.crt
- source: jupyterhub_configuration
target: /srv/jupyterhub/jupyterhub_config.py
- source: jupyterhub_entrypoint
target: /srv/jupyterhub/entrypoint.sh
mode: 0774