docker-compose-mysql.yml
TLDR
The docker-compose-mysql.yml
file is used to define and configure two containers: a MySQL database and a dependency container. It sets up the MySQL container with specific environment variables and health checks, and starts a dependency container using the mattermost/mattermost-wait-for-dep image.
Classes
No classes are defined in this file.
Methods
No methods are defined in this file.
version: '2.4'
services:
mysql:
image: "mysql/mysql-server:5.7.12"
restart: always
environment:
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: mostest
MYSQL_PASSWORD: mostest
MYSQL_USER: mmuser
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 5s
timeout: 10s
retries: 3
tmpfs: /var/lib/mysql
ports:
- 44446:3306
start_dependencies:
image: mattermost/mattermost-wait-for-dep:latest
depends_on:
- mysql
command: mysql