Provides basic traefik setup within a Docker image for running various apps and Ansible scripts for configuring docker swarm.
Set the api key secret:
echo <api_key> | docker secret create CLOUDFLARE_API_KEY -
Set the email config:
echo <email> | docker config create CLOUDFLARE_EMAIL -
docker stack deploy \
-c docker-traefik.yml \
traefik
Traefik is using basic auth to authenticate relying on the file provider which is reading from a docker secret TRAEFIK_BASIC_AUTH_USERS
.
User/pass combos generated via echo $(htpasswd -nb user password)
.