https://github.com/chandanshakya/phpmyadmin-mysql-docker
AMPP - Base docker-compose setup for phpMyAdmin and MySQL (Alternative to XAMPP)
https://github.com/chandanshakya/phpmyadmin-mysql-docker
80 8080 docker docker-compose mysql php phpmyadmin
Last synced: 3 months ago
JSON representation
AMPP - Base docker-compose setup for phpMyAdmin and MySQL (Alternative to XAMPP)
- Host: GitHub
- URL: https://github.com/chandanshakya/phpmyadmin-mysql-docker
- Owner: ChandanShakya
- Created: 2022-03-17T03:00:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-11T00:47:14.000Z (over 2 years ago)
- Last Synced: 2025-06-03T11:07:06.256Z (about 1 year ago)
- Topics: 80, 8080, docker, docker-compose, mysql, php, phpmyadmin
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DOCKER For LAMP Development
## What this Dockerfile contains?
- Apache
- MySQL
- PHP
- phpMyAdmin
## How to run?
- Install docker and docker-compose
```bash
git clone https://github.com/ChandanShakya/phpMyAdmin-MySQL-Docker.git
```
- cd phpMyAdmin-MySQL-Docker
- To start the container;
```bash
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](localhost:8080)
- To access phpMyAdmin, navigate to [localhost:5000](localhost:5000)
### To check if the server is running or not;
open [localhost:8080](localhost:8080)
### To list the current running containers;
```bash
docker-compose ps
```
### To stop the container
```bash
docker-compose down
```
### To list the volumes
```bash
docker volumes ls
```
### To remove the volume
```bash
docker volume rm phpMyAdmin-MySQL-Docker_sql-test
```
### To remove the images
```bash
# 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