Skip to content

Persistence enabled MariaDB docker image based on CentOS 7 original MariaDB Dockerfile

License

Notifications You must be signed in to change notification settings

ParadigmaMKT/docker-centos7-mariadb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-centos7-mariadb

Custom MariaDB image based on CentOS 7 original mariadb Dockerfile (https://github.com/CentOS/CentOS-Dockerfiles/tree/master/mariadb/centos7)

This image is data persistence ready with volumes mount point.

Use with docker-compose, expose local port for external access via MySQL client:

  ports:
    - "3306:3306"

Data persistence:

  volumes:
    - ./src/data/mysql:/var/lib/mysql

You can set the environment vars:

  env_file:
    - './db.env'

db.env file example:

# db.env
MYSQL_ROOT_PASSWORD=MyRoot
MYSQL_DATABASE=MyDB
MYSQL_USER=MyUser
MYSQL_PASSWORD=MyPassword

About

Persistence enabled MariaDB docker image based on CentOS 7 original MariaDB Dockerfile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages