Run Wordpress through Nginx & PHP FPM effortlessly.
- Download zip or clone repo. Place files on the host.
- Update config via
.env
file accordingly. Don't use it as is! - Update certificate domain inside
nginx/wp.conf
. - Run following.
# generate SSL certificates with letsencrypt
$ sh ./gencert.sh
# run services
$ docker-compose up -d
That's it.
There is no built in service for auto renewal. To renew certs run following:
$ sh ./renewcert.sh
To add auto renewal a cron job can be set up like following.
43 6 * * * /path/to/renewcert.sh
- le/ - Volumes for Letsencrypt certs & files.
- nginx/ - Nginx configuration.
- wp-content/ - Wordpress volume.
Ismail Demirbilek - @dbtek
MIT