Skip to content

Instantly share code, notes, and snippets.

@HRKings
Last active September 11, 2021 21:05
Show Gist options
  • Save HRKings/3b8e7eddc64d448fedc1be9abbd5b0c0 to your computer and use it in GitHub Desktop.
Save HRKings/3b8e7eddc64d448fedc1be9abbd5b0c0 to your computer and use it in GitHub Desktop.
MariaDB Template Docker Compose File
version: "3.9"
services:
mariadb:
container_name: mariadb
image: mariadb
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD:-password}
MARIADB_DATABASE: ${MARIADB_DATABASE:-default_database}
volumes:
- ./mariadb:/var/lib/mysql
ports:
- "3306:3306"
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment