Sign inSign up

tslatop/mariadb

By tslatop

•Updated over 2 years ago

fork from linuxserver/mariadb

Image
0

1.0K

tslatop/mariadb repository overview

  • Version:10.11.5

  • Create Network

docker network create -d bridge --subnet=172.27.0.0/24 -o com.docker.network.bridge.name=docker1 proxy
  • docker-compose.yml
version: '3.1'

services:
  mariadb:
    image: tslatop/mariadb
    container_name: mariadb
    environment:
      - PUID=1000
      - PGID=1000
      - MYSQL_ROOT_PASSWORD=root    #root password
      - TZ=Hongkong
    volumes:
      - $PWD/data:/config
    ports:
      - 3306:3306
    restart: unless-stopped
    networks:
      proxy:
        ipv4_address: 172.27.0.100
networks:
  proxy:
    external: true
  • Loading passwords and users from files The MYSQL_ROOT_PASSWORD MYSQL_DATABASE MYSQL_USER MYSQL_PASSWORD REMOTE_SQL env values can be set in a file:
/config/env
  • Using the following format:
MYSQL_ROOT_PASSWORD="ROOT_ACCESS_PASSWORD"
MYSQL_DATABASE="USER_DB_NAME"
MYSQL_USER="MYSQL_USER"
MYSQL_PASSWORD="DATABASE_PASSWORD"
REMOTE_SQL="http://URL1/your.sql,https://URL2/your.sql"
  • These settings can be mixed and matched with Docker ENV settings as you require, but the settings in the file will always take precedence.

Tag summary

Content type

Image

Digest

sha256:9620266b0…

Size

86.1 MB

Last updated

over 2 years ago

docker pull tslatop/mariadb