Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ekyna/docker-nginx-proxy-dev
https://github.com/ekyna/docker-nginx-proxy-dev
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ekyna/docker-nginx-proxy-dev
- Owner: ekyna
- Created: 2017-06-24T14:35:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-17T08:28:43.000Z (almost 1 year ago)
- Last Synced: 2023-11-17T09:55:05.447Z (almost 1 year ago)
- Language: Shell
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ekyna/docker-nginx-proxy-dev
===Docker Nginx proxy with self-signed certificates for local development.
#### Usage
1. Clone and run the proxy:
git clone https://github.com/ekyna/docker-nginx-proxy.git
cd ./docker-nginx-proxy
./manage.sh up2. Configure your website:
_example with docker composer v2_version: '2'
networks:
default:
external:
name: example-network
services:
example:
image: nginx
environment:
- VIRTUAL_HOST=example.dev
- VIRTUAL_PORT=803. Create your network and connect it to the proxy services:
docker network create example-network
./manage.sh connect example-network4. Generate certs for your virtual host:
./manage.sh gencert example.dev5. Trust the CA
Follow [this guide](https://betterprogramming.pub/how-to-create-trusted-ssl-certificates-for-your-local-development-13fd5aad29c6#ee40)
6. Run your website:
cd ./example-website
docker-compose up -d