Last active
February 3, 2020 15:34
-
-
Save Defelo/4dcbe9d2edecb5daf5d0159d4541c527 to your computer and use it in GitHub Desktop.
Docker MySQL Server
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.7' | |
services: | |
db: | |
container_name: mysql_server | |
image: mariadb | |
restart: always | |
environment: | |
MYSQL_USER: "user" | |
MYSQL_PASSWORD: "password" | |
MYSQL_DATABASE: "db" | |
MYSQL_RANDOM_ROOT_PASSWORD: "yes" | |
ports: | |
- "3306:3306" | |
networks: | |
- db | |
phpmyadmin: | |
container_name: mysql_phpmyadmin | |
image: phpmyadmin/phpmyadmin | |
restart: always | |
environment: | |
PMA_HOST: db | |
ports: | |
- "8080:80" | |
networks: | |
- db | |
networks: | |
db: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment