# [Mariadb](https://mariadb.org/) is one of the most popular database servers. # Made by the original developers of MySQL. --- version: "2.1" services: mariadb: image: ghcr.io/linuxserver/mariadb container_name: mariadb environment: # for UserID - PUID=${PUID:-1024} # for GroupID - PGID=${PGID:-100} # specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). - TZ=${TZ:-Europe/Amsterdam} # Set this to root password for installation (minimum 4 characters & non-alphanumeric passwords must be properly escaped). - MYSQL_ROOT_PASSWORD=ROOT_ACCESS_PASSWORD # Specify the name of a database to be created on image startup. - MYSQL_DATABASE=USER_DB_NAME # optional # This user will have superuser access to the database specified by MYSQL_DATABASE (do not use root here). - MYSQL_USER=MYSQL_USER # optional # Set this to the password you want to use for you MYSQL_USER (minimum 4 characters & non-alphanumeric passwords must be properly escaped). - MYSQL_PASSWORD=DATABASE_PASSWORD # optional # Set this to ingest sql files from an http/https endpoint (comma seperated array). - REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql # optional volumes: # Persistent config files - ${BASEDIR:-/volume1/docker}/mariadb/config:/config ports: # Mariadb listens on this port. - 3306:3306 restart: unless-stopped