-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-notebook.yml
39 lines (37 loc) · 1.19 KB
/
docker-compose-notebook.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
version: "3.7"
x-environment: &py-environment
DEBUG: "False"
DEV_ENV: "True" # necessary to have nginx connect to web container
NODE_ENV: "production"
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres # pragma: allowlist secret
MITOL_SECURE_SSL_REDIRECT: "False"
MITOL_DB_DISABLE_SSL: "True"
MITOL_FEATURES_DEFAULT: "True"
OPENSEARCH_URL: elastic:9200
CELERY_TASK_ALWAYS_EAGER: "False"
CELERY_BROKER_URL: redis://redis:6379/4
CELERY_RESULT_BACKEND: redis://redis:6379/4
DOCKER_HOST: ${DOCKER_HOST:-missing}
WEBPACK_DEV_SERVER_HOST: ${WEBPACK_DEV_SERVER_HOST:-localhost}
TIKA_SERVER_ENDPOINT: ${TIKA_SERVER_ENDPOINT:-http://tika:9998/}
TIKA_CLIENT_ONLY: "True"
services:
notebook:
build:
context: .
dockerfile: Dockerfile-nb
volumes:
- .:/src
environment:
<<: *py-environment
BASE_DJANGO_APP_NAME: main
# See https://docs.djangoproject.com/en/4.1/topics/async/#async-safety
# Do no use this outside the notebook
DJANGO_ALLOW_ASYNC_UNSAFE: "true"
env_file: .env
command: >
/bin/bash -c '
sleep 3 &&
jupyter notebook --no-browser --ip=0.0.0.0 --port=8080'
ports:
- "8080:8080"