Skip to content

Instantly share code, notes, and snippets.

@davidalves1
Created November 15, 2019 15:58
Show Gist options
  • Save davidalves1/ac1a7282f65b7cd79da612a1f4857537 to your computer and use it in GitHub Desktop.
Save davidalves1/ac1a7282f65b7cd79da612a1f4857537 to your computer and use it in GitHub Desktop.
Initial docker-compose configuration to run MariaDB
version: '3'
services:
awesome-db:
image: mariadb:10.3
command: "--character-set-server=utf8 --collation-server=utf8_general_ci --innodb-use-native-aio=0"
restart: "no"
ports:
- "3306"
volumes:
- "./.docker/dbdata:/var/lib/mysql"
environment:
MYSQL_DATABASE: my_awesome_db
MYSQL_ROOT_PASSWORD: root123
MYSQL_ROOT_HOST: "%"
awesome-adminer:
image: adminer:latest
restart: "no"
ports:
- 8080:8080
depends_on:
- awesome-db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment