-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-notebook.yml
34 lines (33 loc) · 1.07 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
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_UE_SECURE_SSL_REDIRECT: "False"
MITOL_UE_DB_DISABLE_SSL: "True"
MITOL_UE_FEATURES_DEFAULT: "True"
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}
services:
notebook:
build:
context: .
dockerfile: Dockerfile-nb
volumes:
- .:/src
environment:
<<: *py-environment
BASE_DJANGO_APP_NAME: unified_ecommerce
# 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"