Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Bind testing/dev services only to localhost and not all interfaces

Christian Bauer617f104603eb
diff --git a/profile/dev-testing.yml b/profile/dev-testing.yml
index 41068bb3f..fea99a17b 100644
--- a/profile/dev-testing.yml
+++ b/profile/dev-testing.yml
@@ -14,8 +14,9 @@ services:
extends:
file: deploy.yml
service: keycloak
+ # Access directly if needed on localhost
ports:
- - "8081:8080"
+ - "127.0.0.1:8081:8080"
build:
context: ../keycloak
dockerfile: dev.Dockerfile
@@ -30,7 +31,8 @@ services:
extends:
file: deploy.yml
service: postgresql
+ # Access directly if needed on localhost
ports:
- - "5432:5432"
+ - "127.0.0.1:5432:5432"
volumes:
- postgresql-data:/data
\ No newline at end of file
diff --git a/profile/dev.yml b/profile/dev.yml
index 4a1e15a42..642da04d7 100644
--- a/profile/dev.yml
+++ b/profile/dev.yml
@@ -53,9 +53,9 @@ services:
context: ../keycloak
dockerfile: dev.Dockerfile
image: openremote/keycloak_dev:latest
- # Access directly if needed
+ # Access directly if needed on localhost
ports:
- - "8081:8080"
+ - "127.0.0.1:8081:8080"
volumes:
- ../keycloak/theme:/opt/jboss/keycloak/themes/openremote
depends_on:
@@ -66,8 +66,8 @@ services:
extends:
file: deploy.yml
service: postgresql
- # Access directly if needed
+ # Access directly if needed on localhost
ports:
- - "5432:5432"
+ - "127.0.0.1:5432:5432"
volumes:
- postgresql-data:/data
\ No newline at end of file