-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
33 lines (33 loc) · 1.39 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
services:
soteria:
build:
dockerfile: ./build/package/Dockerfile
context: .
command: serve
emqx:
image: emqx/emqx
environment:
EMQX_DASHBOARD__DEFAULT_PASSWORD: public
EMQX_DASHBOARD__DEFAULT_USERNAME: admin
EMQX_AUTHENTICATION__1__MECHANISM: "password_based"
EMQX_AUTHENTICATION__1__BACKEND: "http"
EMQX_AUTHENTICATION__1__ENABLE: "true"
EMQX_AUTHENTICATION__1__METHOD: "post"
EMQX_AUTHENTICATION__1__URL: "http://soteria:9999/v2/auth"
EMQX_AUTHENTICATION__1__BODY: '{"username" = "$${username}", "password" = "$${password}", "token" = "$${username}", "client_id" = "$${clientid}"}'
EMQX_AUTHORIZATION__NO_MATCH: deny
EMQX_AUTHORIZATION__DENY_ACTION: disconnect
EMQX_AUTHORIZATION__CACHE__MAX_SIZE: 1048576
EMQX_AUTHORIZATION__CACHE__TTL: "1h"
EMQX_AUTHORIZATION__SOURCES__1__TYPE: http
EMQX_AUTHORIZATION__SOURCES__1__METHOD: post
EMQX_AUTHORIZATION__SOURCES__1__URL: "http://soteria:9999/v2/acl"
EMQX_AUTHORIZATION__SOURCES__1__BODY: '{"username" = "$${username}", "password" = "", "token" = "$${username}"}'
EMQX_LISTENERS__TCP__DEFAULT__ENABLE_AUTHN: "quick_deny_anonymous"
EMQX_LISTENERS__TCP__INTERNAL__ENABLE: "true"
EMQX_LISTENERS__TCP__INTERNAL__BIND: 11883
EMQX_LISTENERS__TCP__INTERNAL__ENABLE_AUTHN: "false"
ports:
- 1883:1883
- 18083:18083