README.md 1.01 KB
Newer Older
Dave Lane's avatar
Dave Lane committed
1
This [Docker Compose](https://docs.docker.com/compose/) recipe creates a set of 3 Docker containers which should let you run a very efficient [Grav](https://getgrav.org) website (or multiple sites).
2

3
It provides a container based on Debian Stretch running the latest PHP (7.2 as of this edit) in FPM mode, with an Nginx container for serving it (you will need to have a reverse proxy to serve it and - I recommend - provide HTTPS support - I provide an example Nginx proxy configuration for this), and, for caching performance, an optional Redis container. Support for all of these is compiled into the PHP container.
4

5
## Quick start
6
7
8

To quickly get underway, you should be able to copy the sample docker-compose.yml-sample to docker-compose.yml
`cp docker-compose.yml-sample docker-compose.yml`
9
10
11
12

and edit the tokens (marked with []) to suit your setup.

Then you can get started with `docker-compose up -d && docker-compose logs -f`... if you want to log out, use CTRL-C to exit the log stream. Your containers should continue running.