https://github.com/rivaiskowo/docker-compose-php
Docker Compose for PHP Developer
https://github.com/rivaiskowo/docker-compose-php
apache docker docker-compose mysql php php5 php7 php8
Last synced: 4 months ago
JSON representation
Docker Compose for PHP Developer
- Host: GitHub
- URL: https://github.com/rivaiskowo/docker-compose-php
- Owner: rivaiskowo
- Created: 2023-04-26T03:04:48.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T01:16:22.000Z (almost 2 years ago)
- Last Synced: 2025-01-19T17:56:14.553Z (over 1 year ago)
- Topics: apache, docker, docker-compose, mysql, php, php5, php7, php8
- Language: Dockerfile
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Docker Compose for Web Developer
### Overview
Docker Compose setup to run multiple PHP version with Apache and MySQL
### Install
- `git clone https://github.com/rivaiskowo/docker-compose-php`
- `cd docker-compose-php`
- `docker compose up -d`
### Configuration
- The webroot is at `./htdocs/`
- php.ini for php5.6 file in `./php56/php.ini`
- php.ini for php7.2 file in `./php72/php.ini`
- php.ini for php7.3 file in `./php73/php.ini`
- php.ini for php8.1 file in `./php81/php.ini`
- php.ini for php8.2 file in `./php8w/php.ini`
- Database access
```
host: db
user: root
password: root (password from docker-compose.yml)
port: 3306
```
### Running
- http://localhost:56/info.php - php5.6
- http://localhost:72/info.php - php7.2
- http://localhost:73/info.php - php7.3
- http://localhost:81/info.php - php8.1
- http://localhost:82/info.php - php8.2