-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (47 loc) · 1.59 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
version: '3'
services:
# Configuration for Hub+Proxy
jupyterhub:
build: ./hub # Build the container from the subfolder.
container_name: jupyterhub_hub # The service will use this container name.
restart: unless-stopped
volumes: # Give access to Docker socket.
- /var/run/docker.sock:/var/run/docker.sock
- jupyterhub_data:/srv/jupyterhub
environment: # Env variables passed to the Hub process.
- "DOCKER_JUPYTER_IMAGE=jupyter:wingstructure"
- "DOCKER_NETWORK_NAME=jupyterhub-production" # MIGHT NEEDS TO BE ADJUSTED TO CORRELATE TO THE DEFAULT NETWORK
- "HUB_IP=jupyterhub_hub"
labels: # Traefik configuration.
- "traefik.enable=true"
- "traefik.frontend.rule=Host:jupyter.akaflieg.tu-darmstadt.de"
depends_on:
- reverse-proxy
networks:
- jupyterhub-production
# Configuration for reverse proxy
reverse-proxy:
image: traefik:latest
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- ./traefik/traefik.toml:/etc/traefik/traefik.toml
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik/acme.json:/acme.json
networks:
- jupyterhub-production
#This can be uncommented to ensure image is ready on startup
jupyterlab:
build:
context: ./jupyter
dockerfile: Dockerfile
image: jupyter:wingstructure
command: echo
volumes:
jupyterhub_data:
networks:
jupyterhub-production:
external: true