-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (45 loc) · 1.09 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
version: "3"
services:
hub-db:
image: postgres:9.5@sha256:ee604a9025ec864da512736f765ae714112a77ffc39d762c76b67ca0f8597e9e
container_name: jupyterhub-db
restart: always
env_file:
- shared.env
volumes:
- "db:/var/lib/postgresql/data"
networks:
- internal
hub:
depends_on:
- hub-db
image: materialdigital/pyiron-jhub:2021-06-08@sha256:10c188ff40f546a08de523c87e1cacea55b18c52ed0c1619489c9f2bafc04b79
restart: always
container_name: jupyterhub
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
- "data:/data"
links:
- hub-db
env_file:
- shared.env
- pyiron.env
environment:
POSTGRES_HOST: hub-db
command: /bin/bash -c "jupyterhub -f /srv/jupyterhub/jupyterhub_config.py && jupyterhub upgrade-db"
networks:
- internal
- proxy-net
volumes:
data:
name: jupyterhub-data
driver: local
db:
name: jupyterhub-db-data
driver: local
networks:
proxy-net:
external: true
name: pmd-reverse-proxy-net
internal:
name: jupyterhub-network