Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.48 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.48 KB

OpenDock Proxy

The is based on jwilder/nginx-proxy. All credits goes to the MAN :)

This will setup service for auto handling of reverse proxy, this also uses jrcs/letsencrypt-nginx-proxy-companion to automate SSL certificates.

How to use for project

    git clone [email protected]:opendocks/proxy.git
  • Create certs sub directory

  • Create vhost.d sub directory

  • Create docker network using command

  • Create docker network using command

    docker network create net1-nginx-proxy
  • You need to specify VIRTUAL_HOST & VIRTUAL_PORT as environment for apache service to handle reverse proxy.

  • You need to specify LETSENCRYPT_HOST & LETSENCRYPT_EMAIL as environment for apache service, to handle SSL certificates.

    • BONUS, If you are using opendocks/template with this project, you just need to update .env file for APACHE_VIRTUAL_HOST & APACHE_HTTP_PORT variable and provide in apache service asbelow.

      environment:
            VIRTUAL_HOST: ${APACHE_VIRTUAL_HOST}
            VIRTUAL_PORT: ${APACHE_HTTP_PORT}
            LETSENCRYPT_HOST: ${APACHE_VIRTUAL_HOST}
            LETSENCRYPT_EMAIL: [email protected]
  • Run service

    docker-compose up
  • Enjoy :)