rawmind0 / alpine-traefik

This image is the traefik base. It comes from rawmind/alpine-monit.
67 stars 54 forks source link

Support native docker backend #138

Closed adepretis closed 5 years ago

adepretis commented 5 years ago

For local development with multiple application services we need traefik to integrate with docker as backend.

I added two new environment variables (TRAEFIK_ENABLE_DOCKER and TRAEFIK_DOCKER_ENTRYPOINT).

The only problem with the docker integration is, that the traefik process needs to access the socket (if TRAEFIK_DOCKER_ENTRYPOINT is a socket) and the container has to be started with user root.

adepretis commented 5 years ago

any comment @rawmind0?

claflico commented 5 years ago

I think that I could benefit from this....We're moving away from Rancher Cattle but not quite to Kubernetes yet so experimenting with Portainer and standalone hosts for now....am trying to use the main traefik image but having difficulty getting the cert syntax correct.

rawmind0 commented 5 years ago

Released image rawmind/alpine-traefik:1.7.12-1

claflico commented 5 years ago

@adepretis @rawmind0 Just saw a typo. Readme says "TRAEFIK_DOCKER_ENTRYPOINT" but code says "TRAEFIK_DOCKER_ENDPOINT"

Also, should there have been TRAEFIK_DOCKER_DOMAIN & TRAEFIK_DOCKER_EXPOSED variables?