Skip to content
Non-root Docker image running Alpine Linux and Traefik.
Shell Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
Dockerfile
LICENSE
README.md
travis.sh

README.md

traefik

Build Status Docker Pulls Architecture Alpine Traefik Buy Me A Coffee Become a Patron!

Non-root Docker image running Alpine Linux and Traefik. Traefik is a modern HTTP reverse proxy and load balancer that makes deploying microservices easy. Traefik integrates with your existing infrastructure components (Docker, Swarm mode, Kubernetes, Marathon, Consul, Etcd, Rancher, Amazon ECS, ...) and configures itself automatically and dynamically. Pointing Traefik at your orchestrator should be the only configuration step you need.

DEMYX TRAEFIK
USER demyx
ENTRYPOINT ["traefik"]
PORT 8080 8081 8082

Updates & Support

Code Size Repository Size Watches Stars Forks

  • Auto built weekly on Sundays (America/Los_Angeles)
  • Rolling release updates
  • For support: #demyx

Environment Variables

These are the default environment variables.

- TRAEFIK_ENTRYPOINTS_HTTP_ADDRESS=:8081    # http is the insecure entrypoint name
- TRAEFIK_ENTRYPOINTS_HTTPS_ADDRESS=:8082   # https is the secure entrypoint name
- TZ=America/Los_Angeles

Usage

Since a non-root user can't access docker.sock, this image depends on my lockdown docker.sock proxy container.

# Start the docker.sock proxy container first
docker run -d \
--privileged \
--name=demyx_socket \
--network=demyx_socket \
-v /var/run/docker.sock:/var/run/docker.sock \
-e CONTAINERS=1 \
demyx/docker-socket-proxy

# Start Traefik container
docker run -d \
--name=traefik \
--network=demyx_socket \
-e TRAEFIK_PROVIDERS_DOCKER_ENDPOINT=tcp://demyx_socket:2375 \
-p 80:8081 \
-p 443:8082 \
-v traefik:/demyx \     # Point your acme.json storage to this directory (ex: /demyx/acme.json)
demyx/traefik

For more configurations, see Traefik's official documentations: https://docs.traefik.io.

You can’t perform that action at this time.