tuupola / terraform-ansible-swarm

Deploying Docker swarm with Terraform and Ansible
0 stars 0 forks source link

Add Traefik stack #7

Closed tuupola closed 1 year ago

tuupola commented 1 year ago

Domain defaults to localhost which can be used when testing. Otherwise set to your own domain. Default username is "admin" and password is whatever you set it when deploying.

$ CREDENTIALS=$(htpasswd -nB admin) docker stack deploy -c traefik.yaml traefik
$ DOMAIN=example.com CREDENTIALS=$(htpasswd -nB admin) docker stack deploy -c traefik.yaml traefik

Traefik dashboard will be available at:

https://traefik.localhost https://traefik.example.com