diff --git a/Docker & Kubernetes/Docker/Docker Compose/Traefik.md b/Docker & Kubernetes/Docker/Docker Compose/Traefik.md index 98860c6..8efa3be 100644 --- a/Docker & Kubernetes/Docker/Docker Compose/Traefik.md +++ b/Docker & Kubernetes/Docker/Docker Compose/Traefik.md @@ -1,5 +1,17 @@ -**Purpose**: Deploy a Traefik Reverse Proxy +**Purpose**: A traefik reverse proxy is a server that sits between your network firewall and servers hosting various web services on your private network(s). Traefik automatically handles the creation of Let's Encrypt SSL certificates if you have a domain registrar that is supported by Traefik such as CloudFlare; by leveraging API keys, Traefik can automatically make the DNS records for Let's Encrypt's DNS "challenges" whenever you add a service behind the Traefik reverse proxy. +!!! info "Assumptions" + This Traefik deployment document assumes you have deployed [Portainer](https://docs.bunny-lab.io/Docker %26 Kubernetes/Servers/Docker/Portainer/) to either a Rocky Linux or Ubuntu Server environment. Other docker-compose friendly operating systems have not been tested, so your mileage may vary regarding successful deployment ouside of these two operating systems. + + Portainer makes deploying and updating Traefik so much easier than via a CLI. It's also much more intuitive. + +## Deployment on Portainer +- Login to Portainer (e.g. https://:9443) +- Navigate to "**Environment (usually "local") > Stacks > "+ Add Stack"**" +- Enter the following `docker-compose.yml` and `.env` environment variables into the webpage +- When you have finished making adjustments to the environment variables (and docker-compose data if needed), click the "**Deploy the Stack**" button + +### Stack Deployment Information ```jsx title="docker-compose.yml" version: "3.3" services: