This repository has been archived on 2020-09-29. You can view files and clone it, but cannot push or open issues or pull requests.
traefik.autonomic.zone/README.md
2020-04-30 12:21:28 +02:00

1.1 KiB

traefik

Build Status

https://docs.traefik.io/

https://traefik.swarm.autonomic.zone

Local

$ docker-compose up

Traefik dashboard:

http://traefik.localhost

Test application:

http://whoami.localhost

Also available via (testing routing of proxy):

$ curl -H Host:whoami.localhost http://127.0.0.1

Production

Our drone.autonomic.zone configuration automatically deploys.

Otherwise, you can need to follow 3 steps.

  1. Create the remote docker context locally
$ cp .envrc.sample .envrc
$ direnv allow  # ensure password store works
$ make config
$ make context
$ docker context use swarm.autonomic.zone
  1. Deploy the application to the remote docker context.
$ docker stack deploy \
  --compose-file docker-compose.yml \
  -c docker-compose.production.yml \
  traefik
  1. Switch back to your local context.
$ docker context use default