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
Luke Murphy 365d15f344
Update port to reference config
2020-04-30 15:28:17 +02:00
configs/prod Use versioning through name not file 2020-04-30 15:26:01 +02:00
.drone.yml Add depends on 2020-04-30 15:07:05 +02:00
.envrc.sample Add envrc file 2020-04-25 12:10:30 +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 Use short flag 2020-04-30 13:26:38 +02:00
docker-compose.ci.yml Add CI config and adapt other configs 2020-04-30 14:24:29 +02:00
docker-compose.override.yml Add CI config and adapt other configs 2020-04-30 14:24:29 +02:00
docker-compose.production.yml Update port to reference config 2020-04-30 15:28:17 +02:00
docker-compose.yml Add CI config and adapt other configs 2020-04-30 14:24:29 +02:00

README.md

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 \
  -c 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