Skip to content

Instantly share code, notes, and snippets.

@fmagrosoto
Created February 8, 2023 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmagrosoto/9ed6f01a9ea4e61454fae45985125e4c to your computer and use it in GitHub Desktop.
Save fmagrosoto/9ed6f01a9ea4e61454fae45985125e4c to your computer and use it in GitHub Desktop.
Docker compose file for MySQL Server and phpMyAdmin
# v1.0.0 Fernando Magrosoto V.
version: "3.7"
services:
servidor-mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: acceso2023
ports:
- "3306:3306"
volumes:
- mysqlbds:/var/lib/mysql
phpmyadmin:
depends_on:
- servidor-mysql
image: phpmyadmin:apache
restart: always
environment:
PMA_HOST: servidor-mysql
PMA_USER: root
PMA_PASSWORD: acceso2023
ports:
- "5000:80"
volumes:
mysqlbds:
external: true
networks:
default:
name: digitae
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment