https://github.com/itinance/nginx-ssl-letsencrypt-mysql-wordpress-with-docker-compose
An out-of-the-box-working docker-compose-based environment running Nginx + SSL provided by Let'sEncrypt + MySQL + Wordporess
https://github.com/itinance/nginx-ssl-letsencrypt-mysql-wordpress-with-docker-compose
Last synced: 4 months ago
JSON representation
An out-of-the-box-working docker-compose-based environment running Nginx + SSL provided by Let'sEncrypt + MySQL + Wordporess
- Host: GitHub
- URL: https://github.com/itinance/nginx-ssl-letsencrypt-mysql-wordpress-with-docker-compose
- Owner: itinance
- License: mit
- Created: 2020-01-27T09:49:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-22T10:11:38.000Z (over 6 years ago)
- Last Synced: 2025-02-09T06:16:09.057Z (over 1 year ago)
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
This repository is a out-of-the-box working environment to bring up a Wordpress installation together with MySQL and SSL provided by Let'sEncrypt.
It can probably be used as a template for running any other Web application the same way.
# Prerequisites
Install docker and docker-compose following a good tutorial like [ Getting Started with Docker guide](https://blog.ssdnodes.com/blog/tutorial-getting-started-with-docker-on-your-vps/).
Check your DNS and ensure that your domain has a valid A-Record with the IP of your server. Otherwise Let'sEncrypt won't work.
SSH into the server and fork the repository (you might probably fork this repository to adjust all settings like credentials and your own URL).
1. `git clone it@github.com:itinance/nginx-ssl-letsencrypt-mysql-with-docker-compose.git`
2. `cd nginx-ssl-letsencrypt-mysql-with-docker-compose`
Create a network:
3. `docker network create nginx-proxy`
Build and run:
4. `docker-compose up -d`
# Security Advices
Please take care by yourself in order to provide an enhanced security setup before you use this in production!
And please feel free at any time to contribute your security relevant hints and tips directly into this repository.
# Sources and Tutorials
1. https://blog.ssdnodes.com/blog/tutorial-getting-started-with-docker-on-your-vps/
2. https://blog.ssdnodes.com/blog/host-multiple-ssl-websites-docker-nginx/
3. https://github.com/jwilder/nginx-proxy
4. https://raw.githubusercontent.com/jwilder/nginx-proxy/master/nginx.tmpl
5. https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion
6. https://towardsdatascience.com/top-20-docker-security-tips-81c41dd06f57