With this repo you will be able to set up your server with multiple sites using a single NGINX proxy to manage your connections, automating your apps container (port 80 and 443) to auto renew your ssl certificates with Let´s Encrypt.
More information on https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion
- Clone this repository:
git clone https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion.git- Make a copy of our
.env.sampleand rename it to.env:
Copy & edit the environment variables for your requirements
cp .env.sample .env
nano .env- Run our start script
# ./start.shYour proxy is ready to go!
You can see an example app on /exampleapp with a docker-compose. Copy the .env.sample to .env and edit the variables accordingly
- NETWORK: the network you choose for the web proxy
- DOMAINS: the domains that you want ot register for SSL
- LETSENCRYPT_EMAIL: the mails for registering the domain
In case your image is exposing multiple ports, you need to precise which one to proxy with the variable VIRTUAL_PORT.
Without the repositories below this webproxy wouldn´t be possible.
Credits goes to:
- docker-compose-letsencrypt-nginx-proxy-companion @evertramos
- nginx-proxy @jwilder
- docker-gen @jwilder
- docker-letsencrypt-nginx-proxy-companion @JrCs