Created
November 9, 2019 20:36
-
-
Save shmidtelson/665f9eee3e09bb6f23a7b7e7c578d813 to your computer and use it in GitHub Desktop.
Host Mariadb with phpmyadmin
This file contains hidden or 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
# Add user with host 172.18.0.1 then connect to database | |
# 172.18.0.1 - if localhost connection | |
version: '3.7' | |
services: | |
mariadb: | |
image: 'bitnami/mariadb:latest' | |
environment: | |
- MARIADB_ROOT_PASSWORD=root | |
volumes: | |
- 'mariadb_data:/bitnami' | |
ports: | |
- '3306:3306' | |
phpmyadmin: | |
image: 'bitnami/phpmyadmin:latest' | |
ports: | |
- '8083:80' | |
depends_on: | |
- mariadb | |
volumes: | |
- 'phpmyadmin_data:/bitnami' | |
volumes: | |
mariadb_data: | |
driver: local | |
phpmyadmin_data: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment