Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saphyel/docker-php
https://github.com/saphyel/docker-php
docker-image hacktoberfest php
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/saphyel/docker-php
- Owner: Saphyel
- Created: 2018-05-24T18:41:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-30T13:51:38.000Z (over 1 year ago)
- Last Synced: 2023-05-30T14:35:49.242Z (over 1 year ago)
- Topics: docker-image, hacktoberfest, php
- Language: Dockerfile
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker PHP-FPM
This container includes is ready to work with Symfony.
## Configuration
### Alpine
* vim
* openssh
* git
* curl
* unzip### PHP
* opcache
* bcmath
* apcu
* Composer## FAQ
### Xdebug set up
You need to add a php.ini with this configuration:xdebug.remote_port=9000
xdebug.remote_enable=1
xdebug.remote_connect_back=1I'm gonna explain how to configure it in different IDE, but at the end hitting this URL should do the trick `http://localhost/hello.php?XDEBUG_SESSION_START=DOCKER_DEBUG`
#### PHPStorm
Create a Run Configuration of the type “PHP Remote Debug”.
Enter DOCKER_DEBUG inside of the textfield of `Ide key(session id)`
And apply the following config:Name: Docker
Host: localhost
Port: 8000
Debugger: Xdebug
path mappings: ./ -> /var/www/### Composer set up
#### Root warning message
To avoid that message you can add this env. var
`COMPOSER_ALLOW_SUPERUSER=1`#### Memory limit
You can use more memory by adding this env. var
`COMPOSER_MEMORY_LIMIT=1`