- View the source.
- Go to JupyterHub/SwarmSpawner/docker-compose.yml.
1: 2020-08-21 (Fri) 16:55:18 iseki ![]() |
Cur: 2020-08-21 (Fri) 17:00:29 iseki ![]() |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | *** DockerSpawner 用 サンプル jupyterhub_config.py [#w55e5dcb] | + | *** SwarmSpawner 用 サンプル jupyterhub_config.py [#f2a38cbc] |
+ | version: "3" | ||
+ | services: | ||
+ | proxy: | ||
+ | env_file: .env | ||
+ | image: jupyterhub/configurable-http-proxy:3.1.1 | ||
+ | networks: | ||
+ | - jupyterhub-net | ||
+ | # expose the proxy to the world | ||
+ | ports: | ||
+ | - "80:8000" | ||
+ | command: | ||
+ | - configurable-http-proxy | ||
+ | - '--error-target' | ||
+ | - 'http://hub/hub/error' | ||
+ | |||
+ | hub: | ||
+ | # build an image with SwarmSpawner and our jupyterhub_config.py | ||
+ | env_file: .env | ||
+ | build: | ||
+ | context: "../.." | ||
+ | dockerfile: "examples/swarm/Dockerfile" | ||
+ | # mount the docker socket | ||
+ | volumes: | ||
+ | - "/var/run/docker.sock:/var/run/docker.sock" | ||
+ | networks: | ||
+ | - jupyterhub-net | ||
+ | networks: | ||
+ | jupyterhub-net: | ||
+ | driver: overlay | ||
+ | #br |
- Backup list of JupyterHub/SwarmSpawner/docker-compose.yml
- Backup diff of JupyterHub/SwarmSpawner/docker-compose.yml(No. All)
- 1: 2020-08-21 (Fri) 16:55:18 iseki
- Cur: 2020-08-21 (Fri) 17:00:29 iseki