Nginx, PHP FPM, MariaDB and Memcache with Docker Compose based on Baseimage Flatten
docker-compose up -d
Builds, (re)creates, starts, and attaches to containers based on docker-compose.yml.
To see it work:
- http://localhost/ for the phpinfo served by PHP FPM
- http://localhost/nginx-logo.png for the static served directly by Nginx
PHP files are in /data/php
Static files are in /data/nginx
docker-compose logs
Displays log output from containers
You can find extra log in /log
docker-compose stop
Stops running containers without removing them.
They can be started again with docker-compose start
.
docker-compose rm
Removes stopped service containers
Inspired by: