Skip to content

Instantly share code, notes, and snippets.

@BatuhanK
Forked from thpham/docker-compose.yml
Created January 4, 2019 14:22
Show Gist options
  • Save BatuhanK/2c25d86e5bdca10a8646d2fe186e5f9b to your computer and use it in GitHub Desktop.
Save BatuhanK/2c25d86e5bdca10a8646d2fe186e5f9b to your computer and use it in GitHub Desktop.
EMQTT
version: '2'
services:
redis:
image: redis:alpine
restart: always
container_name: redis
ports:
- "6379"
emqtt:
image: emq:latest
restart: always
container_name: emqtt
environment:
#- EMQ_NAME="emqtt"
#- EMQ_HOST="s2.emqtt.io"
- EMQ_LISTENER__TCP__EXTERNAL=1883
- EMQ_LISTENER__SSL__EXTERNAL=8883
#- EMQ_JOIN_CLUSTER="[email protected]"
#- EMQ_ADMIN_PASSWORD="admin"
#- EMQ_NODE__NAME=""
- EMQ_LOADED_PLUGINS="emq_auth_redis,emq_auth_http,emq_recon,emq_modules,emq_retainer,emq_dashboard"
- EMQ_AUTH__REDIS__SERVER=redis
#- EMQ_AUTH__REDIS__PASSWORD=""
- EMQ_AUTH__REDIS__PASSWORD_HASH=plain
- EMQ_AUTH__HTTP__AUTH_REQ=http://127.0.0.1:8080/mqtt/auth
- EMQ_AUTH__HTTP__AUTH_REQ__METHOD=post
- EMQ_AUTH__HTTP__AUTH_REQ__PARAMS=clientid=%c,username=%u,password=%P
- EMQ_AUTH__HTTP__ACL_REQ=http://127.0.0.1:8080/mqtt/acl
- EMQ_AUTH__HTTP__ACL_REQ__METHOD=get
- EMQ_AUTH__HTTP__ACL_REQ__PARAMS=access=%A,username=%u,clientid=%c,ipaddr=%a,topic=%t
ports:
- 18083:18083
- 1883:1883
- 8883:8883
- 8083:8083
- 4369:4369
- 6000-6100:6000-6100
links:
- redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment