Skip to content

Run OpenResty and Delegate Parsing PHP to an PHP-FPM Container.

License

Notifications You must be signed in to change notification settings

a2way-com/docker_base-openresty-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A2Way Docker-Base OpenResty PHP

https://hub.docker.com/r/a2way/docker_base-openresty-php

Usage

  • Supply the address of a PHP-FPM container into an environment variable named PHP_FPM_HOST.
  • Supply the address of a web server with static content (If any.) into an environment variable named STATIC_CONTENT_HOST.
  • Copy application files into the /app directory.
  • Send requests to port 80.

Example

version: '3'
services:
  web:
    image: a2way/docker_base-openresty-php:<version>
    ports:
      - 8000:80
    environment:
      - PHP_FPM_HOST=my-php-fpm
      - STATIC_CONTENT_HOST=my-static-content
  my-php-fpm:
    image:a2way/docker_base-php-fpm-laravel:<version>
  my-static-content:
    image:nginx:<version>

About

Run OpenResty and Delegate Parsing PHP to an PHP-FPM Container.

Resources

License

Stars

Watchers

Forks

Packages

No packages published