HUB
Sign inSign up

c4tech/php

By c4tech

•Updated about 6 years ago

All of our PHP images in one collection.

Image
0

10K+

c4tech/php repository overview

⁠PHP containers

A few basic PHP containers to serve PHP application privately. It is configured to connect on port 9000 and should be linked to an Nginx container.

⁠Configuration

Application location should match that of the Nginx container. If you're using our c4tech/nginx:php image, your app root for the FPM container should include /app/public as a mounted volume for serving static resources. We use the c4tech/generic-data container to provide /app as a linked volume.

We use the official mariadb and redis images for DB and cache services.

⁠Docker Compose example

appdata:
  image: c4tech/generic-data
  volumes:
    - ./:/app

composer:
  image: c4tech/php:composer
  command: install --no-dev --prefer-dist
  volumes_from:
    - appdata

fpm:
  image: c4tech/php:fpm
  volumes_from:
    - appdata
Tag summary
Recent tags
Content type
Image
Digest
Size
163.9 MB
Last updated
about 9 years ago
docker pull c4tech/php:latest