-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (39 loc) · 984 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
32
33
34
35
36
37
38
39
40
41
version: "3"
services:
db:
build:
context: .
dockerfile: dockerfiles/postgres/Dockerfile
image: dss-postgres
container_name: dss-postgres
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres12345
- PGPASSWORD=postgres12345
- POSTGRES_DB=dsdojo_db
- DATABASE_HOST=localhost
volumes:
- ./docker/db/init:/docker-entrypoint-initdb.d
- ./docker/work/data:/tmp/data
notebook:
build:
context: .
dockerfile: dockerfiles/notebook/Dockerfile
image: dss-notebook
container_name: dss-notebook
ports:
- "8888:8888"
environment:
- PG_PORT=5432
- PG_USER=padawan
- PG_PASSWORD=padawan12345
- PG_DATABASE=dsdojo_db
- JUPYTER_ENABLE_LAB=yes
links:
- db
volumes:
- ./docker/doc:/home/jovyan/doc
- ./docker/work:/home/jovyan/work
command: start-notebook.sh --NotebookApp.token=''