Open source edge router that makes publishing your services a fun and easy experience
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.
Go to file
2020-04-30 12:33:58 +02:00
configs/prod Local dev environment works! 2020-04-30 11:50:59 +02:00
.drone.yml Upgrade docker image 2020-04-30 12:33:58 +02:00
.envrc.sample Add envrc file 2020-04-25 12:10:30 +02:00
docker-compose.override.yml Working with a test app in dev mode 2020-04-30 11:55:40 +02:00
docker-compose.production.yml Fix typo 2020-04-30 12:17:12 +02:00
docker-compose.yml Working with a test app in dev mode 2020-04-30 11:55:40 +02:00
LICENSE Add LICENSE 2020-04-25 11:14:00 +02:00
Makefile Add TLS enabled comms to the swarm 2020-04-28 14:46:09 +02:00
README.md Another README pass 2020-04-30 12:23:18 +02:00

traefik

Build Status

https://docs.traefik.io/

https://traefik.swarm.autonomic.zone

Development

$ python3 -m venv .venv && source .venv/bin/activate
$ pip install -U pip setuptools docker-compose
$ 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.

To do it manually, you 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

You can track logs via docker service logs traefik_traefik

  1. Switch back to your local context.
$ docker context use default