Skip to content

Instantly share code, notes, and snippets.

@wai-lin
Last active August 15, 2020 17:08
Show Gist options
  • Save wai-lin/6dce2eb6b1c4e1c810643088cbdc1039 to your computer and use it in GitHub Desktop.
Save wai-lin/6dce2eb6b1c4e1c810643088cbdc1039 to your computer and use it in GitHub Desktop.
MariaDB with Docker
version: "3.8"
services:
mariadb:
build: .
container_name: mariadb
ports:
- 3306:3306
volumes:
- ./mariadb:/var/lib/mysql
FROM mariadb:10
ENV MYSQL_ROOT_PASSWORD=secret
ENV MYSQL_USER=local
ENV MYSQL_PASSWORD=local
EXPOSE 3306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment