Skip to content

AMPP - Base docker-compose setup for phpMyAdmin and MySQL (Alternative to XAMPP)

Notifications You must be signed in to change notification settings

ChandanShakya/phpMyAdmin-MySQL-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DOCKER For LAMP Development

What this Dockerfile contains?

  • Apache
  • MySQL
  • PHP
  • phpMyAdmin

How to run?

  • Install docker and docker-compose
git clone https://github.com/ChandanShakya/phpMyAdmin-MySQL-Docker.git
  • cd phpMyAdmin-MySQL-Docker
  • To start the container;
docker-compose up -d

This will spin up a container with Apache, MySQL and PHP

The persisent volume will be named mysql-test

First run will take longer as it has to fetch all images

  • Put your files in /src folder; it should show up in localhost:8080
  • To access phpMyAdmin, navigate to localhost:5000

To check if the server is running or not;

open localhost:8080

To list the current running containers;

docker-compose ps

To stop the container

docker-compose down

To list the volumes

docker volumes ls

To remove the volume

docker volume rm phpMyAdmin-MySQL-Docker_sql-test

To remove the images

# List all the images
docker image ls
# Remove the unneeded images
docker image rm namesOfImages

Defaults

  • MySQL password = secret
  • phpMyAdmin user = root
  • phpMyAdmin password = secret
  • servername = mysql-server

About

AMPP - Base docker-compose setup for phpMyAdmin and MySQL (Alternative to XAMPP)

Topics

Resources

Stars

Watchers

Forks