Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Add MariaDB support #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ BASEHOST=pimcore.docker
EXTRAHOSTS=www.pimcore.docker

#
#Choose whether you want to use mariadb or mysql depending on the server setup of your project.
#Rule of thumb = Mariadb is preffered when using >PimcoreX
#
DBMS=mysql
#DBMS=mariadb

# Choose your MySQL version. To see which versions are available see
# https://github.com/docker-library/mysql
#
# In case you use mariadb, check the tags on docker:
# https://hub.docker.com/_/mariadb?tab=tags&page=1&ordering=last_updated
#
MYSQLVERSION=8

# Choose whatever you want to use as default mysql root password.
#
MYSQL_ROOT_PASSWORD=toor
Expand All @@ -56,12 +70,6 @@ APPLICATION=../pimcore
#
DEVELOPMENT=1

#
# Choose your MySQL version. To see which versions are available see
# https://github.com/docker-library/mysql
#
MYSQLVERSION=8

#
# Set the default window manager when running the environment
# Available options are: tmux, screen and byobu
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
- DOMAIN_NAME=redis.${BASEHOST:-pimcore.docker}

mysql:
image: docker.io/library/mysql:${MYSQLVERSION:-8}
image: docker.io/library/${DBMS:-mysql}:${MYSQLVERSION:-8}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-toor}
- DOMAIN_NAME=mysql.${BASEHOST:-pimcore.docker}
Expand Down