https://github.com/rrxs/docker-php-mysql-starter
A docker compose configuration to run multiple php applications in only one container
https://github.com/rrxs/docker-php-mysql-starter
apache docker docker-compose laravel mysql php phpmyadmin wordpress
Last synced: 3 months ago
JSON representation
A docker compose configuration to run multiple php applications in only one container
- Host: GitHub
- URL: https://github.com/rrxs/docker-php-mysql-starter
- Owner: rrxs
- License: mit
- Created: 2024-01-18T16:13:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T22:17:50.000Z (over 2 years ago)
- Last Synced: 2025-01-29T14:45:49.866Z (over 1 year ago)
- Topics: apache, docker, docker-compose, laravel, mysql, php, phpmyadmin, wordpress
- Language: Dockerfile
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-php-mysql-starter
A docker compose configuration to run multiple php applications in only one container
## Applications
- PHP 7.2
- Apache
- MySQL
- PhpMyAdmin
## Getting started
Run the following commands to start containers.
```bash
git clone https://github.com/rrxs/docker-php-mysql-starter.git
cd docker-php-mysql-starter
docker-compose up -d
```
Navigate into `www` folder and start your project.
```
cd www
git clone ...
```
### Ports
- http://localhost:8000 (apache)
- http://localhost:8001 (phpMyAdmin) (user: **root**, pass: **admin**)
- MySQL should be runnig on default port `3306`
### Locating container ip
To identify the ip to access mysql from inside the container run the following commands.
```bash
docker network ls
#search for something like 'docker-php-mysql-starter_default'
docker network inspect | grep "Gateway"
```