/o-proxy

Primary LanguageDockerfile

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 git@github.com:opendocks/o-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/o-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: example@email.com
  • Run service

    docker-compose up
  • Enjoy :)