https://github.com/voronenko/docker-s6-nginx-php-fpm
Base example covering mocking nginx/php-fpm environment with activated xdebug support
https://github.com/voronenko/docker-s6-nginx-php-fpm
docker nginx php php-fpm s6 vscode-remote xdebug
Last synced: 6 months ago
JSON representation
Base example covering mocking nginx/php-fpm environment with activated xdebug support
- Host: GitHub
- URL: https://github.com/voronenko/docker-s6-nginx-php-fpm
- Owner: Voronenko
- Created: 2020-09-10T11:35:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-11T14:58:45.000Z (about 5 years ago)
- Last Synced: 2025-04-15T01:16:28.644Z (6 months ago)
- Topics: docker, nginx, php, php-fpm, s6, vscode-remote, xdebug
- Language: Dockerfile
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# s6 based nginx/php-fpm based container for local development environment
On a board: nginx, php-fpm, xdebug activated.
Additional utilities:
* wait https://github.com/ufoscout/docker-compose-wait/
* ep https://github.com/kreuzwerker/envplate
Container also has pre-created user ubuntu with id 1000 to nicely match your local user, in case if you were
planning to map volumes from local system.Build notes:
For php < 7.4 you need to adjust gd switches to:
```
RUN docker-php-ext-configure gd
--with-png-dir=/usr/include/
--with-jpeg-dir=/usr/include/
--with-freetype-dir=/usr/include/
```For php 7.4 and above, just
```
RUN docker-php-ext-configure gd
--with-png=/usr/include/
--with-jpeg=/usr/include/
--with-freetype=/usr/include/
```Image has pre-configured debugger for use with https://code.visualstudio.com/docs/remote/containers
confirmed to work as a charm with Felix Becker's PHP XDebug extensionhttps://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug