Docker boilerplate for staging environments
Boilerplate contains
- nginx
- PHP 7.2.1-fpm-alpine3.7
- PHP Extensions:
fileinfo
,mbstring
,mcrypt
,gd
orimagick
,pdo
,pdo_mysql
,xmlreader
,xmlwriter
,bcmath
,zip
,xls
,imagick
- MySQL server
- Redis
- Supervisor
- Git
- Composer
- Wkhtmltopdf
Adding to existing project
- Use git submodules to add existing project.
git submodule add https://github.com/netcore/docker-boilerplate.git
cp .env.example .env
- Edit PROJECT, APP_NAME, APP_URL and you should be good to go. Don't forget to add domain to hosts file.
- Same action goes for staging environment, only you should edit
.env.staging
file and APP_URL will be different.
Using
windows
cp .env.example .env
- Change
COMPOSE_CONVERT_WINDOWS_PATHS=0
toCOMPOSE_CONVERT_WINDOWS_PATHS=1
- Change to correct path for your projects folder
COMPOSER_HOME_DIR
- Start docker
- Run
nging-start.bat
- Start containers
docker-compose up -d
Known issues
- Some SOAP client functions might not work on php7.2