A lightweight docker service designed with the bare minimum required to run a PHP website. The service encapsulates:
- Nginx
- PHP 7.1 (FPM)
- Redis
- MariaDB
The PHP fpm container also comes preinstalled with:
- Git
- Composer
- Node (+ npm)
- PHPUnit
- Place/clone your source code into the volumes/www directory
- Copy .env.example and name it .env
- Put in your new desired database connection details into .env
- Run
docker-compose up -d
to start the service
Instead of the conventional 127.0.0.1
or localhost
as a database host setting, you should instead use database
.
Likewise, redis should connect to redis
and not 127.0.0.1
.