Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tcampbppu/php-docker-env
PHP development environment that uses MySQL, Nginx and Composer
https://github.com/tcampbppu/php-docker-env
Last synced: 15 days ago
JSON representation
PHP development environment that uses MySQL, Nginx and Composer
- Host: GitHub
- URL: https://github.com/tcampbppu/php-docker-env
- Owner: tcampbPPU
- Created: 2019-12-09T04:07:42.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-09T04:21:16.000Z (about 5 years ago)
- Last Synced: 2024-11-12T00:04:33.877Z (about 2 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP Development Environment for Docker
- PHP 7.2
- MySQL 5.7
- Nginx latest
- Composer
## Requirements:
- Docker installed [https://docs.docker.com/install/](https://docs.docker.com/install/)
- If on Ubuntu following this setup guide ([https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04))
- Docker-Composer ([Docker Compose documentation](https://docs.docker.com/compose/install/))
- git
## Installation
Clone this repo
`$ git clone https://github.com/tcampbPPU/PHP-Docker-Env.git`Enter the newly create directory
`$ cd php-env`Build the container with Docker-Compose, run as detached
`$ docker-compose up -d`Access the container via bash
`docker-compose exec php bash`Then you can check composer was intalled
`composer -v`If all was installed correctly you will be able to go to [http://localhost/](http://localhost/) on the browser of choice and see the `phpinfo()` page.
### Feedback
Feel free to provide [your feedback](https://github.com/tcampbPPU/PHP-Docker-Env/issues) on structure and style. I'm more than happy to learn how to improve my code and architecture.
Happy Coding :)
-TC