Last active
September 11, 2021 21:05
-
-
Save HRKings/3b8e7eddc64d448fedc1be9abbd5b0c0 to your computer and use it in GitHub Desktop.
MariaDB Template Docker Compose File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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