Nerds and Company PHP + SSL image for Docker
This container extends the nerdsandcompany/php-base
container. See for more information that container.
Make sure you add the following lines to your project's Dockerfile:
FROM nerdsandcompany/php-ssl
# The self-signed certificates use these names in the default apache config
# For this copy to work, these files need to be present in the project root.
COPY ssl-cert-snakeoil.key /etc/ssl/private/
COPY ssl-cert-snakeoil.crt /etc/ssl/certs/
# Run composer install if composer.json is present
COPY composer.json /var/www/html/
COPY composer.lock /var/www/html/
RUN [ ! -e composer.json ] || composer install --prefer-source --no-interaction
# Copy dep files first so Docker caches the install step if they don't change
ADD . /var/www/html/
- SSL (Apache)
- socache_shmcb
- ssl