Examples showing how to use Traefik and Nginx for Reverse Proxy
Find a file
Alex Hyett 9c8e8df751
Update Readme.md
Added instructions for accessing when not on raspberry pi.
2021-03-20 09:13:15 +00:00
nginx Add NGinx and Insecure Traefik 2021-01-20 10:44:42 +00:00
traefik Add NGinx and Insecure Traefik 2021-01-20 10:44:42 +00:00
traefik-ssl Add SSL version 2021-01-20 12:34:15 +00:00
docker-compose.nginx.yml Add NGinx and Insecure Traefik 2021-01-20 10:44:42 +00:00
docker-compose.traefik-ssl.yml Add SSL version 2021-01-20 12:34:15 +00:00
docker-compose.traefik.yml Add NGinx and Insecure Traefik 2021-01-20 10:44:42 +00:00
LICENSE Initial commit 2021-01-20 09:36:17 +00:00
README.md Update Readme.md 2021-03-20 09:13:15 +00:00

traefik-vs-nginx-docker

Examples showing how to use Traefik and Nginx for Reverse Proxy.

This repository is to complement my blog post on this topic, Traefik vs Nginx for Reverse Proxy with Docker on a Raspberry Pi.

NGINX Example

docker-compose -f docker-compose.nginx.yml up

You will then be able to access whoami from http://localhost/whoami (or replace localhost with the IP address of your Raspberry Pi if accessing it remotely)

Traefik Example

For traefik I have included 2 version, one insecure version for local use and a SSL password protected version.

Insecure version

docker-compose -f docker-compose.traefik.yml up

You will then be able to access whoami from http://localhost/whoami and the Traefik dashboard from http://localhost:8080 (or replace localhost with the IP address of your Raspberry Pi if accessing it remotely)

Secure version

You need to replace youremailhere in traefik.toml and yourdomain.com in traefik_dynamic.toml for this to work.

docker-compose -f docker-compose.traefik-ssl.yml up

You will then be able to access whoami from https://localhost/whoami and the Traefik dashboard from https://localhost/dashboard (or replace localhost with the IP address of your Raspberry Pi or yourdomain.com if accessing it remotely).

The username is admin and the password is admin. Read my blog post on how to set this up, Traefik vs Nginx for Reverse Proxy with Docker on a Raspberry Pi