Docker-compose project with Alpine linux, Nginx, MySQL and PHP. Super easy to get started and running in a few mins
Install lemp-stack from the DECK marketplace and follow the instructions on the GUI
git clone https://github.com/deck-app/lemp-stack/
cd lemp-stack
Edit .env
file to change any settings before installing like php, nginx versions etc
docker-compose up -d
From the DECK app, go to stack list and click on project's More > configure > Advanced configuration
Follow the instructions below and restart your stack from the GUI
default.conf is located at ./nginx/default.conf
PHP ini file is located at ./nginx/php_ini/php{YOUR.PHP.VERSION}.ini
Add / remove PHP extensions from ./nginx/Dockerfile-{YOUR.PHP.VERSION}
ARG DEPS="\
nginx \
nginx-mod-http-headers-more \
php7.4 \
php7.4-phar \
...
php7.4-{extension name here}
You have to rebuild the docker image after you make any changes to the project configuration, use the snippet below to rebuild and restart the stack
docker-compose stop && docker-compose up --build -d