https://github.com/markshust/nginx-proxy-mkcert
https://github.com/markshust/nginx-proxy-mkcert
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/markshust/nginx-proxy-mkcert
- Owner: markshust
- Created: 2020-03-21T16:54:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-24T14:03:26.000Z (about 6 years ago)
- Last Synced: 2025-06-10T17:09:45.032Z (about 1 year ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
markshust/nginx-proxy-mkcert
Example of nginx-proxy using mkcert with multiple domains per container for local development with SSL
## Table of contents
- [Prerequisiites](#prerequisites)
- [Usage](#usage)
- [License](#license)
## Prerequisites
This example setup utilizes Docker with Docker Compose, and requires mkcert to be installed on the host machine.
## Usage
You can bring containers up by running:
`docker-compose up`
### SSL Generation
An example of generating SSL certs with `mkcert` is available by running:
`./certgen.sh`
This generates SSL certs to be placed in the `certs` directory, which are then bind-mounted to the `nginx-proxy` container.
### Multiple Domains
This example setup uses three domains:
- https://foo.test -> resolves to `foo` service
- https://bar.test -> resolves to `foo` service
- https://baz.test -> resolves to `bar` service
This is useful if you have multiple domains that need to resolve to a single container.
## License
[MIT](https://opensource.org/licenses/MIT)