https://hub.docker.com/r/a2way/docker_base-openresty-php
- 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
/appdirectory. - Send requests to port
80.
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>