This repository has been archived by the owner on Jun 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
66 lines (64 loc) · 1.51 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
version: "3.2"
services:
jupyterhub:
build:
context: .
dockerfile: ./Dockerfile
image: walki12/jupyterhub:local
container_name: jupyterhub
volumes:
- type: bind
source: ./jupyterhub_config.py
target: /srv/jupyterhub/jupyterhub_config.py
- type: bind
source: ./hubConfig/adminusers
target: /srv/jupyterhub/adminusers
- type: bind
source: ./hubConfig/allowedLDAPGroups
target: /srv/jupyterhub/allowedLDAPGroups
- type: bind
source: ./hubConfig/bindDnTemplate
target: /srv/jupyterhub/bindDnTemplate
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
- type: volume
source: jupyteruser
target: /jupyterUsers
volume:
nocopy: true
- type: volume
source: jupyterhub
target: /data
volume:
nocopy: true
env_file:
- .env
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
update_config:
parallelism: 1
delay: 10s
failure_action: continue
monitor: 60s
max_failure_ratio: 0.3
placement:
constraints:
- node.hostname == ?HOSTNAME?
volumes:
jupyterhub:
external:
name: jupyterhub-data
jupyteruser:
external:
name: jupyterhub-userdata
networks:
default:
external:
name: jupyterhub-network