Skip to content

armgit / core

Public Imported from GitHub
0

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

Add support for specifying IDENTITY_NETWORK_HOST when running docker compose (needed for docker toolbox/virtualbox)

Rich Turner639426f4528e
diff --git a/README.md b/README.md
index f58fb48c8..211640556 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,12 @@ Alternatively you can build the docker images locally, to do this please refer t
docker-compose -p openremote -f profile/demo.yml up --build
```
+***NOTE: If you are using docker toolbox (Virtual Box) then you must specify the `IDENTITY_NETWORK_HOST` environment variable as the IP address of the docker VM:***
+```
+Command Prompt: set IDENTITY_NETWORK_HOST=192.168.99.100 && docker-compose...
+Bash: IDENTITY_NETWORK_HOST=192.168.99.100 docker-compose....
+```
+
Once you have running docker containers you can Access the manager UI and API (you will have to accept the 'insecure' self-signed SSL certificate):
```
diff --git a/profile/deploy.yml b/profile/deploy.yml
index c42f4cdd7..17b445c83 100644
--- a/profile/deploy.yml
+++ b/profile/deploy.yml
@@ -137,7 +137,7 @@ services:
# The public host name of this OpenRemote installation. This name is used in bearer tokens
# and must be the name you access the web services under. If you change proxy#DOMAINNAME, also
# change this to match.
- # IDENTITY_NETWORK_HOST: localhost
+ IDENTITY_NETWORK_HOST: ${IDENTITY_NETWORK_HOST:-localhost}
# Set if SSL is enabled on the frontend reverse proxy and all internal proxies should assume https
IDENTITY_NETWORK_SECURE: 'true'