Sign inSign up

kdruelle/phalconphp

By kdruelle

•Updated over 3 years ago

Image
0

7.2K

kdruelle/phalconphp repository overview

⁠Phalcon php

This image of php embed :

  • Phalcon php
  • intl extension

⁠Usage

⁠FPM version

docker-compose file :

version: "2.2"
services:
  fpm:
    image: kdruelle/phalconphp:latest
    volumes:
      - "/app/path/on/host:/apps/appname"
      
  nginx:
    image: kdruelle/nginx:latest
    volumes:
      - "./nginx/conf:/etc/nginx/conf.d"

Nginx configuration file:

upstream myApp {
    server fpm:9000
}
server {
    listen  80;

    # this path MUST be exactly as docker-compose.fpm.volumes,
    # even if it doesn't exist in the nginx docker.
    root /apps/appname;

    location / {
        try_files $uri /index.php$is_args$args;
    }

    location ~ ^/.+\.php(/|$) {
        fastcgi_pass myApp;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

Tag summary

Content type

Image

Digest

sha256:7ffcef3b8…

Size

97.7 MB

Last updated

over 3 years ago

docker pull kdruelle/phalconphp:7.4-4.1-ubuntu