-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 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
# This compose file can be useful to develop and debug Jupyterhub code locally.
# It is not meant to be deployed in production.
version: "3.9"
services:
jupyterhub:
platform: linux/amd64
build:
context: jupyterhub
dockerfile: Dockerfile.dev
command: ["jupyterhub", "-f", "/etc/jupyterhub/jupyterhub_dev_config.py"]
container_name: jupyterhub
networks:
- openhexa
depends_on:
- postgres
environment:
LOAD_DEV_CONFIG: "true"
JUPYTER_IMAGE: blsq/openhexa-base-environment:latest
DOCKER_NETWORK_NAME: openhexa
HUB_IP: jupyterhub
HUB_DB_URL: postgresql://postgres:postgres@postgres:5432/jupyterhub
AUTHENTICATION_URL: http://app:8000/notebooks/authenticate/
DEFAULT_CREDENTIALS_URL: http://app:8000/notebooks/default-credentials/
WORKSPACE_CREDENTIALS_URL: http://app:8000/workspaces/credentials/
LOGOUT_REDIRECT_URL: http://app:8000/
HEXA_SERVER_URL: http://app:8000/
CONTENT_SECURITY_POLICY: "frame-ancestors 'self' localhost:*"
JUPYTERHUB_CRYPT_KEY: 0b9c2791baa0b19e10f1dc9c4a1a702dda0a37c332378870e9542271a365b9b8
HUB_API_TOKEN: cbb352d6a412e266d7494fb014dd699373645ec8d353e00c7aa9dc79ca87800d
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./jupyterhub/config/:/etc/jupyterhub/
ports:
- 8001:8000
restart: on-failure
postgres:
image: postgres:12
networks:
- openhexa
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: jupyterhub
networks:
openhexa:
name: openhexa
external: true