https://github.com/skrajewski/php-app-on-docker
My base docker-compose definition for building php apps
https://github.com/skrajewski/php-app-on-docker
docker docker-compose php
Last synced: about 2 months ago
JSON representation
My base docker-compose definition for building php apps
- Host: GitHub
- URL: https://github.com/skrajewski/php-app-on-docker
- Owner: skrajewski
- Created: 2017-10-31T13:10:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T16:40:52.000Z (over 7 years ago)
- Last Synced: 2025-04-12T23:47:38.845Z (about 1 year ago)
- Topics: docker, docker-compose, php
- Language: Dockerfile
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP App on Docker
This is my base `docker-compose.yml` definition to start work with a PHP project. It's based on an [article from my blog](https://szymonkrajewski.pl/set-up-muti-container-environment-using-docker-compose/). This repository has the framework-agnostic nginx setup – you have to change the vhost configuration to run e.g. Symfony framework. Additionaly, we mount an external `php.ini` file to the `php-fpm` container.
```sh
docker-compose up -d
```
## What is inside?
* PHP 7.2
* iconv
* mcrypt
* mysqli
* pdo_mysql
* mbstring
* intl
* nginx 1.11
* MariaDB 10
* default database: `app`
* root password: `root`
### Exposed ports:
* nginx:80 -> 8080
* db:3306 -> 33060