Skip to content

Instantly share code, notes, and snippets.

@mokxter
Created May 28, 2018 02:26
Show Gist options
  • Save mokxter/a9377ce41335dd44429e0d1c67b6e76b to your computer and use it in GitHub Desktop.
Save mokxter/a9377ce41335dd44429e0d1c67b6e76b to your computer and use it in GitHub Desktop.
Simple mariadb docker compose for development work.
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