Skip to content

synapsis-official/docker_mariadb

Repository files navigation

MariaDB

Official Docker MariaDB Image of Synapsis

Docker Image content

Dockerfile Example

FROM syis/mariadb:latest

# An initialization script creates the needed
# databases by reading the environments named:
# - MARIADB_x_NAME
# - MARIADB_x_USER
# - MARIADB_x_PASSWORD
# (where x is an incremental integer)
# The script cycle over the numbers (by starting from 1),
# until it NOT find a variable named MARIADB_i_NAME

ENV MARIADB_ROOT_PASSWORD='secret'

ENV MARIADB_1_NAME='db_name'
ENV MARIADB_1_USER='db_user'
ENV MARIADB_1_PASSWORD='db_password'

ENV MARIADB_2_NAME='db_2_name'
ENV MARIADB_2_USER='db_2_user'
ENV MARIADB_2_PASSWORD='db_2_password'

Links

Tags

About

MariaDB with multiple databases

Resources

Stars

Watchers

Forks

Packages

No packages published