Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| docker_notes:docker-reverse-proxy [2024-12-07 Sat wk49 18:06] – [Using labels in docker config files] baumkp | docker_notes:docker-reverse-proxy [2025-01-07 Tue wk02 09:00] (current) – [Cloudsec] baumkp | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{tag> | {{tag> | ||
| - | ======Reverse Proxy Server====== | + | ======Reverse Proxy Server |
| I seem to have gotten the Traefik reverse proxy working according to Techno Tim [[https:// | I seem to have gotten the Traefik reverse proxy working according to Techno Tim [[https:// | ||
| Line 67: | Line 67: | ||
| ====Using labels in docker config files==== | ====Using labels in docker config files==== | ||
| - | | + | [[https://doc.traefik.io/ |
| + | ===Typical | ||
| + | <code yml> | ||
| + | # Enable Traefik for this service | ||
| + | - " | ||
| + | # Tell Traefik to specifically use the network " | ||
| + | - " | ||
| + | # Make Traefik use this domain in HTTP | ||
| + | - " | ||
| + | - " | ||
| + | - " | ||
| + | # Middleware to redirect HTTP to HTTPS | ||
| + | - " | ||
| + | # Make Traefik use this domain in HTTPS | ||
| + | - " | ||
| + | - " | ||
| + | - " | ||
| + | # Specify the specific resolver to use | ||
| + | #- " | ||
| + | - " | ||
| + | - " | ||
| + | # Define the port inside of the Docker service to use | ||
| + | - " | ||
| + | |||
| + | When the docker compose '' | ||
| + | |||
| + | *Traefik: | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| ====Using config.yml==== | ====Using config.yml==== | ||
| <code bash [enable_line_numbers=" | <code bash [enable_line_numbers=" | ||
| Line 85: | Line 121: | ||
| │ | │ | ||
| └── docker-compose.yml</ | └── docker-compose.yml</ | ||
| + | |||
| + | *Traefik: | ||
| + | *[[https:// | ||
| =====whitelisting===== | =====whitelisting===== | ||
| The Traefik middleware ipWhitelist only allows the define ip address(es) to be forwarded. | The Traefik middleware ipWhitelist only allows the define ip address(es) to be forwarded. | ||
| Line 191: | Line 230: | ||
| - | <- docker_notes: | + | <- docker_notes: |