Sign inSign up

luboson/php7-fpm-alpine

By luboson

•Updated over 6 years ago

PHP7 FPM image with php extensions

Image
0

6.1K

luboson/php7-fpm-alpine repository overview

⁠Deprecated

Use https://github.com/LubosRemplik/php⁠ and relevant tag

⁠PHP7 fpm alpine

Image with few additional php extensions and composer

⁠Extensions
mbstring
intl
simplexml
pdo
pdo_mysql
gd
redis
pcntl
xdebug
imagick
⁠Docker Compose example

Running this php7-fpm image with nginx, mariadb, redis. Tested with CakePHP 3 app.

version: '3'
services:
  web:
    image: nginx:alpine
    ports:
      - "8080:80"
    volumes:
      - .:/var/www
      - ./config/nginx.conf:/etc/nginx/conf.d/default.conf
    depends_on:
      - fpm
      - db
  fpm:
    image: luboson/php7-fpm-alpine:latest
    volumes:
      - .:/var/www
    working_dir: /var/www
    depends_on:
      - redis
  db:
    image: mariadb:latest
    volumes:
      - ./config/sql:/docker-entrypoint-initdb.d
    environment: 
      - MYSQL_ROOT_PASSWORD=secret
      - MYSQL_DATABASE=my_app
      - MYSQL_USER=my_app
      - MYSQL_PASSWORD=secret
  redis:
    image: redis:alpine
networks:
  default:
    driver: bridge

Tag summary

Content type

Image

Digest

Size

191.4 MB

Last updated

over 6 years ago

docker pull luboson/php7-fpm-alpine