-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (40 loc) · 1.1 KB
/
docker-compose.yaml
File metadata and controls
40 lines (40 loc) · 1.1 KB
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
version: '3.4'
services:
ui:
build:
context: .
dockerfile: Dockerfile
target: ui
environment:
- DATABASE_URL=postgresql+pg8000://postgres:postgres@db:5432/metrics_repository
ports:
- "8501:8501"
depends_on:
- db
db:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_DB=metrics_repository
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgresql/data
notebook:
build:
context: .
dockerfile: Dockerfile
target: thoth
command: ["jupyter", "notebook", "--allow-root", "--ip", "0.0.0.0", "--NotebookApp.token=''", "--NotebookApp.password=''", "--no-browser", "--notebook-dir=/app/examples/"]
# - jupyter notebook --allow-root --ip 0.0.0.0 --NotebookApp.token='' --NotebookApp.password='' --no-browser --notebook-dir=/app/examples/
environment:
- DATABASE_URL=postgresql+pg8000://postgres:postgres@db:5432/metrics_repository
ports:
- "8888:8888"
depends_on:
- ui
volumes:
db:
driver: local