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.
To properly utilize this image, please use Demyx.
- Repository - demyxsh/demyx
- Homepage - demyx.sh
Join us on Discord for latest news, faster support, or just chill.
Support this project by buying coffee (please).
DEMYX | TRAEFIK |
---|---|
USER | demyx |
ENTRYPOINT | ["demyx-entrypoint"] |
PORT | 8080 8081 8082 |
This repository has been moved to the organization demyxsh; please update the remote URL.
git remote set-url origin [email protected]:demyxsh/traefik.git
- Since a non-root user can't access docker.sock, this image depends on my lockdown docker.sock proxy container.
- DEMYX_ACME_EMAIL must be set or the container will exit.
# 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 DEMYX=/demyx \
-e DEMYX_CONFIG=/etc/demyx \
-e DEMYX_LOG=/var/log/demyx \
-e DEMYX_ENDPOINT=tcp:https://demyx_socket:2375 \
-e [email protected] \ # Required
-p 80:8081/tcp \
-p 80:8081/udp \
-p 443:8082/tcp \
-p 443:8082/udp \
-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.
- Auto built weekly on Saturdays (America/Los_Angeles)
- Rolling release updates
- For support: Discord