Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

homecentr/docker-traefik

Repository files navigation

Project status

CI/CD on master

HomeCentr - traefik

This docker image is a repack of Traefik compliant with the HomeCenter docker images standard (S6 overlay, privilege drop etc.).

Usage

version: "3.7"
services:
  traefik:
    image: homecentr/traefik
  ports:
  - "80:80"

Environment variables

Name Default value Description
PUID 7077 UID of the user traefik should be running as.
PGID 7077 GID of the user traefik should be running as.
PUID_ADDITIONAL_GROUPS Dictionary of additional groups the PUID user should be a member of in the container. Expected format is gid:name,gid:name. You can use up to 15 groups (unix limit).
TRAEFIK_ARGS Additional arguments to pass to Traefic.

Exposed ports

Port Protocol Description
80 TCP Default HTTP

Traefik can expose any configured port (e.g. HTTPS/443) but it needs to configured. The table specifies only the ports explicitly exposed in the Dockerfile.

Volumes

Container path Description
/config Traefik configuration files in case you decide to configure it using a file. The files can also be placed at /etc/traefik, but for unification with other homecentr images the default location is /config.

Security

The container is regularly scanned for vulnerabilities and updated. Further info can be found in the Security tab.

Container user

The container supports privilege drop. Even though the container starts as root, it will use the permissions only to perform the initial set up. The traefik process runs as UID/GID provided in the PUID and PGID environment variables.

⚠️ Do not change the container user directly using the user Docker compose property or using the --user argument. This would break the privilege drop logic.