https://github.com/urre/docker-compose-nginx-multiple-sites
Simple example using multiple https websites together
https://github.com/urre/docker-compose-nginx-multiple-sites
docker docker-compose https nginx ssl
Last synced: 21 days ago
JSON representation
Simple example using multiple https websites together
- Host: GitHub
- URL: https://github.com/urre/docker-compose-nginx-multiple-sites
- Owner: urre
- Created: 2020-05-05T20:14:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-05T20:15:08.000Z (about 6 years ago)
- Last Synced: 2024-10-19T19:40:36.837Z (over 1 year ago)
- Topics: docker, docker-compose, https, nginx, ssl
- Language: DIGITAL Command Language
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NGINX, Docker Compose and multiple sites using HTTPS
Simple example using multiple websites together.
## Run
```
docker-compose up -d
```
View sites in the browser
1. [https://example_one.local](https://example_one.local)
2. [https://example_two.local](https://example_two.local)
## Notes
- SSL certs are shipped in `./certs` in this example. You can generate then using open SSL. Also [mkcert](https://github.com/FiloSottile/mkcert) is a great little tool.
- Certs need to be trusted, also `./etc/hosts` need to be updated. See my other [repo](https://github.com/urre/wordpress-nginx-docker-compose) on how to do that.