Public | Automated Build

Last pushed: 2 hours ago
Short Description
MySQL container provisioned via Ansible
Full Description

Repository Information

Builds a Docker image running MySQL based on Alpine Linux ready for use.
Provisioning provided via Ansible.

How-To

Build

docker build -t ansible-mysql .

Consume

default

docker run -d --name mysql -p 3306:3306 mrlesmithjr/mysql:alpine

define root password

docker run -d --name mysql -e MYSQL_ROOT_PASSWORD=P@55w0rd -p 3306:3306 mrlesmithjr/mysql:alpine

define db to create

docker run -d --name mysql -e MYSQL_DATABASE=pdns -p 3306:3306 mrlesmithjr/mysql:alpine

define db, user, and password

docker run -d --name mysql -e MYSQL_ROOT_PASSWORD=P@55w0rd -e MYSQL_DATABASE=phpipam -e MYSQL_USER=phpipam -e MYSQL_PASSWORD=phpipam -p 3306:3306 mrlesmithjr/mysql:alpine

define volume for persistent storage

docker run -d --name mysql -v $PWD/.data:/var/lib/mysql -p 3306:3306 mrlesmithjr/mysql:alpine

License

BSD

Author Information

Larry Smith Jr.

Docker Pull Command
Owner
mrlesmithjr