Skip to content

Proxy Routing

How It Works

  1. nginx-proxy listens on ports 80 and 443
  2. docker-gen watches Docker containers and generates nginx configs from VIRTUAL_HOST environment variables
  3. acme-companion obtains Let's Encrypt SSL certificates for LETSENCRYPT_HOST domains

Adding a New Service

Set these environment variables on any container:

yaml
environment:
  VIRTUAL_HOST: myapp.tribewarez.com
  VIRTUAL_PORT: 3000
  LETSENCRYPT_HOST: myapp.tribewarez.com

Attach the container to the proxy-network network, and nginx-proxy will route traffic automatically.

TribeWarez Blockchain Ecosystem