Open source edge router that makes publishing your services a fun and easy experience
configs/prod | ||
.drone.yml | ||
.envrc.sample | ||
docker-compose.override.yml | ||
docker-compose.production.yml | ||
docker-compose.yml | ||
LICENSE | ||
Makefile | ||
README.md |
traefik
Local
$ docker-compose up
Traefik dashboard:
Test application:
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.
- 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
- Deploy the application to the remote docker context.
$ docker stack deploy \
--compose-file docker-compose.yml \
-c docker-compose.production.yml \
traefik
- Switch back to your local context.
$ docker context use default