Change template name as generic vlues

master
Pasindu Rupasinghe 4 months ago
parent 5ee07c57a9
commit b6fa700fdc

@ -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
```
```

@ -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

@ -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
#

@ -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

Loading…
Cancel
Save