Sign inSign up

seabopo/traefik

By seabopo

•Updated over 1 year ago

Unofficial Traefik images for Windows Nano Server.

Image
0

3.1K

seabopo/traefik repository overview

⁠Unofficial Traefik Windows Images

Traefik⁠ is a modern reverse proxy and load balancer that integrates with your existing service mesh infrastructure components and configures itself automatically and dynamically.

The official Traefik Docker repo⁠ only supports Alpine 1.7 and Windows Server Core 1809. This repo adds support for Windows Nano Server based on Microsoft's PowerShell⁠ images and the release builds provided by the Traefik GitHub Project⁠

⁠
Docker Example

docker run -d -p 80:80 -p 8081:8081 -v C:/local/:C:/traefik/conf/ --name traefik traefik:local

... where C:/local is a directory on the local PC that contains the desired traefik.toml configuration file.

⁠
Dockerfile

FROM mcr.microsoft.com/powershell:nanoserver-1809

SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

RUN New-Item \
        -ItemType directory \
        -Path "/traefik"; \
    Invoke-WebRequest \
        -Uri "https://github.com/traefik/traefik/releases/download/v2.8.0/traefik_v2.8.0_windows_amd64.zip" \
        -OutFile "/traefik/traefik.zip"; \
    Expand-Archive \
        -Path "/traefik/traefik.zip" \
        -DestinationPath "/traefik/" \
        -Force; \
    Remove-Item \
        -Path "/traefik/traefik.zip" \
        -Force;

EXPOSE 80
ENTRYPOINT [ "/traefik/traefik.exe", "--configfile", "/traefik/conf/traefik.toml" ]

LABEL org.opencontainers.image.title="Traefik" \
      org.opencontainers.image.description="A modern reverse-proxy." \
      org.opencontainers.image.documentation="https://traefik.io/traefik/" \
      org.opencontainers.image.base.name="mcr.microsoft.com/powershell:nanoserver-1809" \
      org.opencontainers.image.version="v2.8.0" \
      org.opencontainers.image.url="https://hub.docker.com/r/seabopo/traefik" \
      org.opencontainers.image.vendor="seabopo" \
      org.opencontainers.image.authors="seabopo @ Azure Devops / GitHub"

Tag summary

Content type

Image

Digest

sha256:df743f2cb…

Size

245.6 MB

Last updated

over 1 year ago

docker pull seabopo/traefik:nanoserver-ltsc2022