server/docker-compose.yml
2021-08-18 18:48:17 +02:00

45 lines
1.5 KiB
YAML

services:
broker:
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-server
- 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-server:
image: mariadb
restart: always
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-server
- PMA_USER=root
- PMA_PASSWORD=MlmAccess
- UPLOAD_LIMIT=512M
ports:
- "4081:80"