This docker recipe serves dynamic Composer PHP pages.
- Official build of Nginx:
nginx:latest
- Official build of PHP:
php:8.0.11-fpm
(FastCGI Process Manager) - Official build of composer
composer:latest
Change to folder recipes/03-composer
:
❯ git clone https://github.com/ixnode/docker-recipes.git && \
cd docker-recipes/recipes/03-composer
Check the content of the docker-compose.yml
:
Change the content of the recipes/03-composer/html
folder to your needs or use the
example inside. Start the Docker container after that:
❯ docker-compose up -d
Open http://localhost:8000/ to see your content. At any time after starting the
container, the content within the folder recipes/03-composer/html
folder can be
changed. The changes are visible immediately after reloading the browser.
@see: Useful docker commands