server/docker-compose.yml

46 lines
1.5 KiB
YAML
Raw Normal View History

2021-08-18 16:48:17 +00:00
services:
mqtt:
2021-08-18 16:48:17 +00:00
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
2021-08-18 16:48:17 +00:00
- 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:
2021-08-18 16:48:17 +00:00
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
2021-08-18 16:48:17 +00:00
- PMA_USER=root
- PMA_PASSWORD=MlmAccess
- UPLOAD_LIMIT=512M
ports:
- "4081:80"