Created
January 28, 2022 13:59
-
-
Save userbradley/690341f7b881c2c7dc5d1fc22298e918 to your computer and use it in GitHub Desktop.
mariadb in docker
This file contains 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
mariadb: | |
image: mariadb:latest | |
restart: always | |
hostname: "mariadb" | |
command: "mysqld --init-file /data/application/init.sql" | |
volumes: | |
- mariadb-data:/var/lib/mysql | |
- ./init.sql:/data/application/init.sql | |
ports: | |
- '3306:3306' | |
environment: | |
MYSQL_ROOT_PASSWORD: password1 | |
volumes: | |
mariadb-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment