The repo https://hub.docker.com/r/pretzlaw/php/ holds the compiled container of https://github.com/pretzlaw/docker-php .
Hopefully we keep this up:
Ready and set for your own dockerized development workflow ;-)
Simple as that:
version: '3'
services:
php:
image: pretzlaw/php:5.3-apache
# Mount your project / data in "/var/www/html" (document root)
# or "/var/www" if you have a more complex setup.
volumes:
- ".:/var/www/html"
# Make it accessible via http://127.0.0.1:8000
ports:
- "8000:80"
Exchange the image name by one of the following tags.
Here is a more complete example what you might want to do in your projects:
version: '3'
services:
php:
image: pretzlaw/php:7.1-apache
volumes:
- ".:/var/www/html"
environment:
LOCALTIME: Europe/Paris
# Apache configuration (HTTPD__ prefix)
HTTPD__DocumentRoot: /var/www/html
# Install via PECL
pecl_install: redis
# PHP config (PHP__ prefix)
PHP__memory_limit: 512M
PHP__session.save_path: /var/www/html
# Enable modules
PHP_php5enmod: >
gd
intl
mysqli
xdebug
Use one of these:
pretzlaw/php:5.3-apache
Dockerfilepretzlaw/php:5.3-fpm
Dockerfilepretzlaw/php:5.4-apache
Dockerfilepretzlaw/php:5.4-cli
Dockerfilepretzlaw/php:5.4-fpm
Dockerfilepretzlaw/php:5.5-apache
Dockerfilepretzlaw/php:5.5-cli
Dockerfilepretzlaw/php:5.5-fpm
Dockerfilepretzlaw/php:5.6-apache
Dockerfilepretzlaw/php:5.6-cli
Dockerfilepretzlaw/php:5.6-fpm
Dockerfilepretzlaw/php:7.0-apache
Dockerfilepretzlaw/php:7.0-fpm
Dockerfilepretzlaw/php:7.1-apache
Dockerfilepretzlaw/php:7.1-fpm
Dockerfilepretzlaw/php:7.2-apache
Dockerfilepretzlaw/php:7.3-apache
Dockerfilepretzlaw/php:7.4-apache
DockerfilePlease leave a message in the issue tracker: https://github.com/pretzlaw/docker-php/issues
Or a simple comment below.