Skip to content

Commit 618d5e1

Browse files
committed
Minor change to the docker-compose to hide internal ports to only work with localhost.
1 parent d7c0662 commit 618d5e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker-compose.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
volumes:
2424
- ./docs:/docs
2525
ports:
26-
- "8001:8001"
26+
- "127.0.0.1:8001:8001"
2727

2828
postgres:
2929
container_name: postgres
@@ -38,7 +38,7 @@ services:
3838
PGPASSWORD: postgres
3939
PGUSER: postgres
4040
ports:
41-
- 5432:5432
41+
- "127.0.0.1:5432:5432"
4242
depends_on:
4343
- traefik
4444
healthcheck:
@@ -62,7 +62,7 @@ services:
6262
PGPASSWORD: postgres
6363
PGUSER: postgres
6464
ports:
65-
- 5000:5000
65+
- "127.0.0.1:5000:5000"
6666

6767
react:
6868
container_name: react
@@ -78,7 +78,7 @@ services:
7878
- ./frontend:/app
7979
- /app/node_modules
8080
ports:
81-
- 8080:8080
81+
- "127.0.0.1:8080:8080"
8282

8383
keycloak:
8484
profiles: [ "keycloak" ]
@@ -89,7 +89,7 @@ services:
8989
volumes:
9090
- ./keycloak/realm.json:/opt/keycloak/data/import/realm.json
9191
ports:
92-
- 1337:8080
92+
- "127.0.0.1:1337:8080"
9393
environment:
9494
KEYCLOAK_CLIENT_ID: metagrid-localhost
9595
KEYCLOAK_USER: admin

0 commit comments

Comments
 (0)