Created
May 28, 2018 02:26
-
-
Save mokxter/a9377ce41335dd44429e0d1c67b6e76b to your computer and use it in GitHub Desktop.
Simple mariadb docker compose for development work.
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: "2" | |
| services: | |
| db: | |
| image: bianjp/mariadb-alpine | |
| ports: | |
| - 3306:3306 | |
| restart: always | |
| environment: | |
| MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' | |
| MYSQL_USER: root | |
| volumes: | |
| - my-db-volume:/var/lib/mysql | |
| volumes: | |
| my-db-volume: | |
| driver: 'local' | |
| driver_opts: | |
| type: 'none' | |
| o: 'bind' | |
| device: '/home/user/.dbvolumes/mariadb' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment