entgra-emqx-docker file

pull/2/head
Amalka Subasinghe 2 years ago
commit 15675226d8

@ -0,0 +1,8 @@
FROM emqx/emqx:4.4.11
EXPOSE 1883 8083 8084 8883 11883 18083 4370 5369
COPY ./entrypoint.sh /opt/emqx/bin/entrypoint.sh
USER root
RUN chmod +x /opt/emqx/bin/entrypoint.sh
ENTRYPOINT ["/opt/emqx/bin/entrypoint.sh"]

@ -0,0 +1,14 @@
docker build -t registry.entgra.io/entgra-emqx:4.4.11 -f Dockerfile .
docker-compose up -d
docker exec -it $(docker ps -aq -n 1) /bin/bash
docker-compose down
Note:
changes done to [app.cf1a32fcdaf819de2bf7101f63de512f.css](emqx-static%2Fcss%2Fapp.cf1a32fcdaf819de2bf7101f63de512f.css)
changed colours as:
`#42d885 -> #0f84bb`
`#0f84bb -> #34c388`

@ -0,0 +1,55 @@
version: "3.8"
services:
entgra-emqx:
image: registry.entgra.io/entgra-emqx:4.4.11
container_name: entgra-emqx
restart: always
ports:
- "1883:1883"
- "8081:8081"
- "8083:8083"
- "8084:8084"
- "8883:8883"
- "18083:18083"
volumes:
# Logs
- ./static:/opt/emqx/static
# environment:
# Hostname configurations
# - MGT_HOSTNAME=localhost
# - MGT_HTTPS_PORT=9443
# - MGT_HTTP_PORT=9763
#
# - GATEWAY_HOSTNAME=localhost
# - GATEWAY_HTTPS_PORT=8243
# - GATEWAY_HTTP_PORT=8280
# - GATEWAY_CARBON_HTTPS_PORT=9443
# - GATEWAY_CARBON_HTTP_PORT=9763
#
# - KM_HOSTNAME=localhost
# - KM_HTTPS_PORT=9443
# DB configurations
# - DB_HOST=127.0.0.1
# - DB_USERNAME=root
# - DB_PASSWORD=root
# Super admin user configurations
# - SUPER_ADMIN_USERNAME=admin
# - SUPER_ADMIN_PASSWORD=admin
# IP configurations
# - NODE_TYPE=apim1
# - NODE_1=10.207.161.21
# - NODE_2=10.207.161.22
# Proxy configurtations
# - HTTP_PROXY=ip or hostname
# - HTTPS_PROXY=ip or hostname
# - http_proxy=ip or hostname
# - https_proxy=ip or hostname
# - no_proxy= comma seperated dns
# - NO_PROXY= comma seperated dns

@ -0,0 +1,9 @@
#!/bin/bash
echo "copying static content"
STATIC_CONFIG_PATH=/opt/emqx/lib/emqx_dashboard-4.4.10/priv/www/static/
cp /opt/emqx/static/css/* $STATIC_CONFIG_PATH/css/
cp /opt/emqx/static/img/* $STATIC_CONFIG_PATH/img/
echo "Starting server.."
sh /opt/emqx/bin/emqx foreground

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Loading…
Cancel
Save