Skip to content

Commit 5f499c5

Browse files
committed
docker-compose.yml: added the services.
+ postgresql added, + pgadmin4 added.
1 parent b01be93 commit 5f499c5

File tree

1 file changed

+32
-5
lines changed

1 file changed

+32
-5
lines changed

docker-compose.yaml

+32-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,38 @@
11
version: "3.7"
22
services:
3-
datascience-workspace:
3+
4+
jupyter:
5+
container_name: "<project>_jupyter"
46
image: jupyter/datascience-notebook:python-3.8.6
5-
environment:
6-
- JUPYTER_TOKEN=password
7+
restart: "always"
8+
ports:
9+
- 8888:8888
10+
env_file:
11+
- config/jupyter.env
712
volumes:
813
- ./:/home/jovyan/work
14+
15+
postgres:
16+
container_name: "<project>_postgres"
17+
image: postgres:latest
918
ports:
10-
- 8888:8888
11-
container_name: datascience-workspace
19+
- 5454:5432
20+
env_file:
21+
- config/postgres.env
22+
volumes:
23+
- shared/:/var/lib/postgresql/data
24+
restart: "always"
25+
26+
pgadmin4:
27+
container_name: "<project>_pgadmin"
28+
image: dpage/pgadmin4
29+
ports:
30+
- 5050:80
31+
env_file:
32+
- config/pgadmin.env
33+
volumes:
34+
- shared:/root/.pgadmin
35+
restart: "always"
36+
37+
volumes:
38+
shared:

0 commit comments

Comments
 (0)