https://github.com/fchyla/wordpress_blog_stack
Wordpress blog stack with docker-compose
https://github.com/fchyla/wordpress_blog_stack
docker-compose mysql nginx-proxy wordpress
Last synced: 3 months ago
JSON representation
Wordpress blog stack with docker-compose
- Host: GitHub
- URL: https://github.com/fchyla/wordpress_blog_stack
- Owner: fchyla
- Created: 2018-03-22T17:28:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T13:47:46.000Z (over 8 years ago)
- Last Synced: 2025-02-23T21:32:25.668Z (over 1 year ago)
- Topics: docker-compose, mysql, nginx-proxy, wordpress
- Homepage: https://blog.chy.la
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Wordpress stack with docker-compose with SSL using letsencrypt service with automatic certificate renewal.

# Overview
* [nginx-proxy](https://github.com/jwilder/nginx-proxy) as frontend proxy
* [docker-letsencrypt-nginx-proxy-companion](https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion) used to generate and update SSL certificates and config files for nginx-proxy
* [wordpress:latest](https://hub.docker.com/_/wordpress/)
* [mysql:5.7](https://hub.docker.com/_/mysql/)
Includes import of SQL db via the WP_IMPORT_SQL_IMPORT_FILE variable and WP_CONTENT_VOLUME to mount "wp-content" directory on persistent storage
> wp-content contains all user-supplied content, all that you upload to the blog is stored there
> post content is stored in the wordpress database
# HOWTO
Rename example.env to .env, make sure it is in the same place as the compose file, and fill in the variables
WP_IMPORT_SQL_IMPORT_FILE and WP_CONTENT_VOLUME should be absolute or relative to the docker-compose file
Run _docker-compose config_ to preview the config