Skip to content

dbtek/docker-compose-wordpress-fpm-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

$ 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

License

MIT

About

Docker Environment for Wordpress with FPM & Nginx

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages