Rancher Active Proxy - andreydiveev/wiki GitHub Wiki

version: '2'
services:
  rancher-active-proxy:
    image: adi90x/rancher-active-proxy
    environment:
      CRON: 0 2 * * *
      DEBUG: 'False'
      DEFAULT_EMAIL: [email protected]
      DEFAULT_HOST: ''
      DEFAULT_PORT: '80'
    stdin_open: true
    volumes:
    - /opt/rancher-active-proxy/htpasswd:/etc/nginx/htpasswd
    - /opt/rancher-active-proxy/vhost.d:/etc/nginx/vhost.d
    - /opt/rancher-active-proxy/letsencrypt:/etc/letsencrypt
    tty: true
    ports:
    - 80:80/tcp
    - 443:443/tcp
    labels:
      io.rancher.container.pull_image: always

version: '2'
services:
  web:
    ...
    labels:
      rap.le_host: example.org
      rap.host: example.org

Optional (for different stacks):

...
  rancher-active-proxy:
    ...
    environment:
      ...
      RAP_NAME: rap01
...
  web:
    ...
    labels:
      ...
      rap.rap_name: rap01