docker-bits/lsio/mariadb/docker-run.sh

19 lines
1.2 KiB
Bash
Raw Normal View History

2021-04-21 00:55:42 +00:00
# [Mariadb](https://mariadb.org/) is one of the most popular database servers.
# Made by the original developers of MySQL.
2021-04-10 10:16:29 +00:00
source ./.env
docker run -d \
--name=mariadb \
2022-04-02 00:45:58 +00:00
-e PUID=${PUID:-1024} `# for UserID` \
-e PGID=${PGID:-100} `# for GroupID` \
2021-04-10 10:16:29 +00:00
-e MYSQL_ROOT_PASSWORD=ROOT_ACCESS_PASSWORD `# Set this to root password for installation (minimum 4 characters).` \
2021-04-13 00:58:58 +00:00
-e TZ=${TZ:-Europe/Amsterdam} `# Specify a timezone to use for example Europe/Amsterdam` \
2021-04-10 10:16:29 +00:00
-e MYSQL_DATABASE=USER_DB_NAME `# optional` `# Specify the name of a database to be created on image startup.` \
-e MYSQL_USER=MYSQL_USER `# optional` `# This user will have superuser access to the database specified by MYSQL_DATABASE (do not use root here).` \
-e MYSQL_PASSWORD=DATABASE_PASSWORD `# optional` `# Set this to the password you want to use for you MYSQL_USER (minimum 4 characters).` \
-e REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql `# optional` `# Set this to ingest sql files from an http/https endpoint (comma seperated array).` \
-p 3306:3306 `# Mariadb listens on this port.` \
-v ${BASEDIR:-/volume1/docker}/mariadb/config:/config `# Contains the db itself and all assorted settings.` \
--restart unless-stopped \
ghcr.io/linuxserver/mariadb