Created
June 13, 2022 05:47
-
-
Save devkiran/5e0f3d1bd4c94aafddea20ca6b5ce02a to your computer and use it in GitHub Desktop.
MySQL + phpMyAdmin Docker-compose
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
version: '3' | |
services: | |
# Database | |
db: | |
platform: linux/x86_64 | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: jackson | |
MYSQL_PASSWORD: password | |
networks: | |
- mysql-phpmyadmin | |
# phpmyadmin | |
phpmyadmin: | |
depends_on: | |
- db | |
image: phpmyadmin | |
restart: always | |
ports: | |
- '8080:80' | |
environment: | |
PMA_HOST: db | |
MYSQL_ROOT_PASSWORD: password | |
networks: | |
- mysql-phpmyadmin | |
networks: | |
mysql-phpmyadmin: | |
volumes: | |
db_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment