server/docker-compose.yml

46 lines
1.5 KiB
YAML

services:
mqtt:
restart: never
image: vernemq/vernemq:1.11.0
environment:
- DOCKER_VERNEMQ_ACCEPT_EULA=yes
- DOCKER_VERNEMQ_PLUGINS__VMQ_PASSWD=off
- DOCKER_VERNEMQ_PLUGINS__VMQ_ACL=off
- DOCKER_VERNEMQ_PLUGINS__VMQ_DIVERSITY=on
- DOCKER_VERNEMQ_VMQ_DIVERSITY__AUTH_MYSQL__ENABLED=on
- DOCKER_VERNEMQ_VMQ_DIVERSITY__MYSQL__HOST=mysql
- DOCKER_VERNEMQ_VMQ_DIVERSITY__MYSQL__PORT=3306
- DOCKER_VERNEMQ_VMQ_DIVERSITY__MYSQL__USER=root
- DOCKER_VERNEMQ_VMQ_DIVERSITY__MYSQL__PASSWORD=MlmAccess
- DOCKER_VERNEMQ_VMQ_DIVERSITY__MYSQL__DATABASE=MlmAccess
- DOCKER_VERNEMQ_VMQ_DIVERSITY__MYSQL__PASSWORD_HASH_METHOD=password
ports:
- 1883:1883
- 8883:8883
- 8888:8888
volumes:
- ./data/vernemq/data:/vernemq/data
- ./data/vernemq/log:/vernemq/log
mysql:
image: mariadb
restart: never
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=MlmAccess
- MARIADB_DATABASE=MlmAccess
volumes:
- "./data/mysql:/var/lib/mysql"
ports:
- 4306:3306
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
environment:
- PMA_HOST=mysql
- PMA_USER=root
- PMA_PASSWORD=MlmAccess
- UPLOAD_LIMIT=512M
ports:
- "4081:80"