Skip to content

Commit

Permalink
add emqx
Browse files Browse the repository at this point in the history
  • Loading branch information
chendelin1982 authored Mar 4, 2024
1 parent 9c56172 commit 93f67a0
Show file tree
Hide file tree
Showing 19 changed files with 82 additions and 244 deletions.
27 changes: 27 additions & 0 deletions apps/emqx/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
W9_REPO=emqx
W9_DIST=community
W9_VERSION=latest

W9_POWER_PASSWORD=1PrMxExC45LsCT
W9_HTTP_PORT_SET=9001
W9_MQTT_PORT_SET=9002

#### -- Not allowed to edit below environments when recreate app based on existing data -- ####

W9_ID=emqx
W9_HTTP_PORT=18083
# credential is static, when login system requires compulsory password change
# from: https://www.emqx.io/docs/en/latest/dashboard/introduction.html#first-login

W9_LOGIN_USER=admin
W9_LOGIN_PASSWORD=public

W9_URL=example.yourdomain.com
W9_NETWORK=websoft9

#### ----------------------------------------------------------------------------------------- ####


# All EMQX Configuration in etc/emqx.conf can be configured via environment variables.
# refer to: https://www.emqx.io/docs/en/latest/configuration/configuration.html
# e.g EMQX_LISTENERS__SSL__DEFAULT__ACCEPTORS <--> listeners.ssl.default.acceptors
File renamed without changes.
4 changes: 4 additions & 0 deletions apps/emqx/Notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# EMQX

- credentials is staic value: https://www.emqx.io/docs/en/latest/dashboard/introduction.html#first-login or can set by ENV?
- HOST is need?
33 changes: 33 additions & 0 deletions apps/emqx/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# image: https://hub.docker.com/r/emqx/emqx
# docs: https://www.emqx.io/docs/en/latest/deploy/install-docker.html

version: '3.8'

services:

emqx:
image: $W9_REPO:$W9_VERSION
container_name: $W9_ID
restart: unless-stopped
ports:
- $W9_HTTP_PORT_SET:18083 #Web console
- $W9_MQTT_PORT_SET:1883 #default MQTT
#- 8883:8883 #default MQTT at TLS/SSL
#- 8083:8083 #WebSocket
#- 8084:8084 #WebSocket at TLS/SSL
#- 8080:8080 # HTTP Admin API
env_file: .env
volumes:
- data:/opt/emqx/data
- etc:/opt/emqx/etc
- log:/opt/emqx/log

volumes:
data:
etc:
log:

networks:
default:
name: $W9_NETWORK
external: true
File renamed without changes.
18 changes: 18 additions & 0 deletions apps/emqx/variables.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "emqx",
"trademark": "EMQX",
"release": false,
"fork_url": "https://github.com/emqx/emqx",
"edition": [
{
"dist": "community",
"version": ["5.5","5.4","5.3","5.2","5.1","latest"]
}
],
"requirements": {
"cpu": "1",
"memory": "1",
"disk": "1",
"url": "https://www.emqx.io/docs/en/latest/deploy/install.html"
}
}
46 changes: 0 additions & 46 deletions apps/template/.env

This file was deleted.

21 changes: 0 additions & 21 deletions apps/template/Dockerfile

This file was deleted.

2 changes: 0 additions & 2 deletions apps/template/Notes.md

This file was deleted.

26 changes: 0 additions & 26 deletions apps/template/README.jinja2

This file was deleted.

44 changes: 0 additions & 44 deletions apps/template/docker-compose.yml

This file was deleted.

1 change: 0 additions & 1 deletion apps/template/src/after_up.sh

This file was deleted.

12 changes: 0 additions & 12 deletions apps/template/src/encrypt.sh

This file was deleted.

3 changes: 0 additions & 3 deletions apps/template/src/filelist

This file was deleted.

1 change: 0 additions & 1 deletion apps/template/src/get_version.sh

This file was deleted.

57 changes: 0 additions & 57 deletions apps/template/src/nginx-proxy.conf

This file was deleted.

8 changes: 0 additions & 8 deletions apps/template/src/php_exra.ini

This file was deleted.

1 change: 0 additions & 1 deletion apps/template/src/replace_url.sh

This file was deleted.

22 changes: 0 additions & 22 deletions apps/template/variables.json

This file was deleted.

0 comments on commit 93f67a0

Please sign in to comment.