-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (35 loc) · 939 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
version: '3.8'
networks:
jupyterhub-network:
name: &networkname jupyterhub-network
driver: overlay
attachable: true
services:
jupyterhub:
image: xnat/jupyterhub:1.1.0
hostname: jupyterhub
build:
context: dockerfiles/jupyterhub
args:
JH_VERSION: "${JH_VERSION}"
JH_DOCKERSPAWNER_VERSION: "${JH_DOCKERSPAWNER_VERSION}"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
ports:
- "8000:8000"
expose:
- "8000"
- "8081"
networks:
- jupyterhub-network
environment:
JH_NETWORK: *networkname
JH_UID: "${JH_UID}"
JH_GID: "${JH_GID}"
NB_UID: "${NB_UID}"
NB_GID: "${NB_GID}"
JH_START_TIMEOUT: "${JH_START_TIMEOUT}"
JH_XNAT_URL: "${JH_XNAT_URL}"
JH_XNAT_SERVICE_TOKEN: "${JH_XNAT_SERVICE_TOKEN}"
JH_XNAT_USERNAME: "${JH_XNAT_USERNAME}"
JH_XNAT_PASSWORD: "${JH_XNAT_PASSWORD}"