Skip to content

Deploy multiple containerized web apps in the same Server (VPS, ...) using Docker and NGINX as a reverse proxy

License

Notifications You must be signed in to change notification settings

naskio/auto-reverse-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-reverse-proxy

Deploy multiple containerized web apps in the same Server (VPS, ...) using Docker and NGINX as a reverse proxy. This will automatically route the requests to the containers and manage (create, generate and renew) the Let's encrypt SSL certificates.

Overview

  • nginx-proxy is a containerized NGINX reverse proxy.
  • portaineris a web-based tool to manage containers.
  • demo is a web example.

Setup and Configuration

  1. Install Docker in your server (Official docs)

  2. Make docker run at startup of the OS

    sudo systemctl enable docker
  3. Install docker-compose (Official Docs)

  4. Create a Docker network

    docker network create auto-reverse-proxy-global-network
  5. Configure env variables in each folder

    cd $FOLDER_NAME
    cp .env.example .env
    nano .env
  6. Start the reverse-proxy

    cd ./nginx-proxy
    docker-compose up -d

    to stop the reverse-proxy run

    cd ./nginx-proxy
    docker-compose down
  7. Run portainer

    cd  ./portainer
    docker-compose up -d

    to stop portainer run

    cd  ./portainer
    docker-compose down

Customize nginx reverse proxy

See Customize nginx reverse proxy for more details.


Contribute

Pull requests are welcome. For any bug report, please create an issue on GitHub.

Acknowledgements

Based on nginx-proxy , acme-companion and portainer .

License

GNU General Public License v3.0

About

Deploy multiple containerized web apps in the same Server (VPS, ...) using Docker and NGINX as a reverse proxy

Topics

Resources

License

Stars

Watchers

Forks

Languages