-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
37 lines (33 loc) · 979 Bytes
/
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
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
# JupyterHub docker-compose configuration file
version: "3.0"
services:
hub:
image: jupyterhub
env_file: .env
networks:
swarmnet:
aliases:
- jupyterhub
deploy:
placement:
constraints: [node.role == manager]
volumes:
# Bind Docker binary from host machine so we can invoke Docker commands
# from inside container
- "/usr/bin/docker:/usr/bin/docker:ro"
# 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
- "data:/data"
ports:
- "443:443"
- "8000:8000"
command: >
jupyterhub -f /srv/jupyterhub/jupyterhub_config.py
volumes:
data:
networks:
swarmnet: