Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dbtek/docker-compose-wordpress-fpm-nginx

Docker Environment for Wordpress with FPM & Nginx
https://github.com/dbtek/docker-compose-wordpress-fpm-nginx

docker docker-compose fpm nginx wordpress

Last synced: about 1 month ago
JSON representation

Docker Environment for Wordpress with FPM & Nginx

Awesome Lists containing this project

README

        

Docker Environment for Wordpress with FPM & Nginx
===

Run Wordpress through Nginx & PHP FPM effortlessly.

### Install
- 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.

```bash
# generate SSL certificates with letsencrypt
$ sh ./gencert.sh
# run services
$ docker-compose up -d
```

That's it.

### Renew SSL Certificates
There is no built in service for auto renewal. To renew certs run following:

```bash
$ sh ./renewcert.sh
```

To add auto renewal a cron job can be set up like following.

```
43 6 * * * /path/to/renewcert.sh
```

### Folder Structure
- le/ - Volumes for Letsencrypt certs & files.
- nginx/ - Nginx configuration.
- wp-content/ - Wordpress volume.

### Author
Ismail Demirbilek - [@dbtek](https://twitter.com/dbtek)

### License
MIT