diff --git a/ReadMe.md b/ReadMe.md index b188303..02769c1 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -1,14 +1,12 @@ -1. docker build -t registry.entgra.io/entgra-emqx:4.4.11 -f Dockerfile . -2. docker-compose up -d -3. docker exec -it $(docker ps -aq -n 1) /bin/bash -4. docker-compose down - - -Note: +1. docker build -t registry.entgra.io/entgra-emqx:4.4.11-entgra-v2 -f Dockerfile . +2. Change Application server hostname in docker-compose +3. docker-compose up -d +4. docker exec -it $(docker ps -aq -n 1) /bin/bash +5. docker-compose down ``` For more emqx-docker things: https://github.com/emqx/emqx/tree/master/deploy/docker -``` \ No newline at end of file +``` diff --git a/configs/emqx_exhook.conf b/configs/emqx_exhook.conf index 405283c..d258430 100644 --- a/configs/emqx_exhook.conf +++ b/configs/emqx_exhook.conf @@ -48,7 +48,7 @@ ## The gRPC server url ## ## exhook.server.$name.url = url() -exhook.server.default.url = http://${SG_HOSTNAME}:9000 +exhook.server.default.url = http://${SERVER_HOSTNAME}:9000 #exhook.server.default.ssl.cacertfile = etc/certs/cacert.pem #exhook.server.default.ssl.certfile = etc/certs/cert.pem diff --git a/docker-compose.yml b/docker-compose.yml index 864e94e..038ddb2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: "3.8" services: entgra-emqx: - image: registry.entgra.io/entgra-emqx:4.4.11 + image: registry.entgra.io/entgra-emqx:4.4.11-entgra-v2 container_name: entgra-emqx restart: always extra_hosts: @@ -20,7 +20,7 @@ services: environment: # Hostname configurations - - SG_HOSTNAME=switchgear + - SERVER_HOSTNAME=host_name # - MGT_HTTPS_PORT=9443 # - MGT_HTTP_PORT=9763 # diff --git a/entrypoint.sh b/entrypoint.sh index 18f53c6..8319bff 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,7 +3,7 @@ CONFIG_PATH=/opt/emqx/etc/plugins/emqx_exhook.conf # Set emqx_exhook.conf configs -sed -i 's/${SG_HOSTNAME}/'$SG_HOSTNAME'/g' $CONFIG_PATH +sed -i 's/${SERVER_HOSTNAME}/'$SERVER_HOSTNAME'/g' $CONFIG_PATH echo "Starting server.." sh /opt/emqx/bin/emqx foreground