MAINTAINER: Maximilian Sparenberg [email protected]
Mariadb in a docker container based on alpine image.
FROM alpine:latest
docker run -d --name mariadb -e MYSQL_ROOT_PASSWORD=ABC123xyz -e MYSQL_DATABASE=nextcloud -e MYSQL_USER=nextcloud -e MYSQL_PASSWORD=ABC123xyz -p 3306:3306 mspbgx/alpine-mariadb
cat docker-compose.yml
version: '3.1'
services:
db:
image: mspbgx/alpine-mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: ABC123xyz
MYSQL_ROOT_PASSWORD = <mysql root password>
MYSQL_DATABASE = <database to be created>
MYSQL_USER = <user to be created>
MYSQL_PASSWORD = <password to be created>