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

19 lines
1.2 KiB
Bash
Raw Normal View History

2021-04-10 10:16:29 +00:00
# Mariadb is one of the most popular database servers. Made by the original
# developers of MySQL.
source ./.env
docker run -d \
--name=mariadb \
-e PUID=${PUID:-1024} `# for GroupID` \
-e PGID=${PGID:-100} `# for UserID` \
-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