-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
29 lines (28 loc) · 1017 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
version: '3'
services:
lab:
build: ./
image: planning-entitlements
container_name: planning-entitlements
volumes:
- ./:/app
ports:
- "8888:8888"
environment:
- JUPYTER_ENABLE_LAB=1
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
- POSTGRES_URI=${POSTGRES_URI}
command: ["/bin/sh","-c","pip install -e /app && jupyter-lab --no-browser --ip=\"*\" --allow-root --port=8888 --NotebookApp.notebook_dir=/app --NotebookApp.terminado_settings='{\"shell_command\": [\"bash\"]}' --LabApp.token=\"\" --LabApp.password=\"\""]
voila:
image: cityofla/ita-data-civis-lab:sha-4888c7e
volumes:
- ./:/app
ports:
- "8866:8866"
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- VOILA_NB=${VOILA_NB}
command: ["/bin/sh","-c","pip install -e /app && voila /app/${VOILA_NB}"]