Sign inSign up

alpine/emqx

Sponsored OSS

By alpine

Updated over 6 years ago

old versions of emqx (https://github.com/emqx/emqx-docker)

Image
1

4.6K

alpine/emqx repository overview

Dockerfile for builds

v2.1.0 (the script start.sh has bug, I can't set auth.mysql.username properly, give up)

https://github.com/emqx/emqx-docker/blob/b55440cf96f978ef8dba5a9b20fcaad8d9891f32/Dockerfile

v2.1.1(the script start.sh has bug, I can't set auth.mysql.username properly, give up)

https://github.com/emqx/emqx-docker/blob/1b04e44610f5d02c1ba073375117ddaaae4e7279/Dockerfile

v2.3.4 (works)

https://github.com/emqx/emqx-docker/blob/24ad314468a40ea24b09345c94b899505a096435/Dockerfile

Usage

Reference its upstream:

https://hub.docker.com/r/emqx/emqx

Here I give a simple command for quick start

# I have to set with "sleep 5" before running "start.sh". 

name="emqx-<project>"

docker rm -f $(docker ps -aq --filter name=${name}) || echo "ok"

docker run -d --name ${name} --restart=always \
    -p 18083:18083 -p 1883:1883 -p 4369:4369 \
    -e EMQ_MQTT__LISTENER__TCP=1883 \
    -e EMQ_LOADED_PLUGINS="emq_auth_mysql,emq_recon,emq_modules,emq_retainer,emq_dashboard" \
    -e EMQ_AUTH__MYSQL__SERVER="<mysql_url>:3306" \
    -e EMQ_AUTH__MYSQL__USERNAME="admin" \
    -e EMQ_AUTH__MYSQL__PASSWORD="<xxxxxxxx>" \
    -e EMQ_AUTH__MYSQL__PASSWORD_HASH=plain \
    -e EMQ_AUTH__MYSQL__DATABASE="mqtt_table" \
    alpine/emqx:2.3.4 sh -c "sleep 5 & /opt/emqttd/start.sh"

Tag summary

Content type

Image

Digest

Size

18.9 MB

Last updated

over 6 years ago

docker pull alpine/emqx:2.1.1

This week's pulls

Pulls:

13

Last week