-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
31 lines (31 loc) · 961 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
version: '3.4'
services:
app:
image: "${BASE_IMAGE_NAME}-dev"
build:
context: .
target: dev_image
ports:
# Use localhost so that we don't expose this to other machines.
- '127.0.0.1:8866:8866'
volumes:
- .:/home/coder/src
- "${POETRY_CACHE_DIR}:/home/coder/.cache/pypoetry"
environment:
- VOILA_DEBUG=true
command: ["poetry", "run", "python", "app/voila-app.py"]
jupyter:
image: "${BASE_IMAGE_NAME}-dev"
build:
context: .
target: dev_image
ports:
# Use localhost so that we don't expose this to other machines.
- '127.0.0.1:8888:8888'
volumes:
- .:/home/coder/src
- "${POETRY_CACHE_DIR}:/home/coder/.cache/pypoetry"
environment:
- JUPYTERLAB_SETTINGS_DIR=/home/coder/src/jupyterlab/config
- JUPYTERLAB_WORKSPACES_DIR=/home/coder/src/jupyterlab/workspaces
command: ["poetry", "run", "jupyter", "lab", "--ip", "0.0.0.0"]