Created
November 15, 2019 15:58
-
-
Save davidalves1/ac1a7282f65b7cd79da612a1f4857537 to your computer and use it in GitHub Desktop.
Initial docker-compose configuration to run MariaDB
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
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