Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcopaga/treafik-getting-started-article
Treafik Getting started project for the blog post
https://github.com/marcopaga/treafik-getting-started-article
ansible docker-compose traefik vagrant
Last synced: 19 days ago
JSON representation
Treafik Getting started project for the blog post
- Host: GitHub
- URL: https://github.com/marcopaga/treafik-getting-started-article
- Owner: marcopaga
- License: other
- Created: 2017-07-15T05:29:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T11:47:15.000Z (11 months ago)
- Last Synced: 2024-10-10T05:37:20.698Z (about 1 month ago)
- Topics: ansible, docker-compose, traefik, vagrant
- Homepage: https://blog.codecentric.de/en/2017/09/traefik-modern-reverse-proxy/
- Size: 109 KB
- Stars: 13
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Intro
This is the companion project for the [post](https://blog.codecentric.de/en/2017/09/traefik-modern-reverse-proxy/) on the codecentric blog. You can use it to follow along and setup your own environment to play with [Traefik](https://traefik.io/).
Vagrant uses the ansible provisioner to bootstrap the machines. Have a look into the [provision directory](provision/) for details. The main entry file for the [server](provision/playbook-server.yml) and [client](provision/playbook-client.yml) are a good starting point.
It will create two virtual machines as a server and a client. The server will host a DNS server and a Traefik server. The client is configured to use the previously created DNS resolver.
# Setup
To get started make sure you have [Vagrant](https://www.vagrantup.com/) installed on your machine. Once you are ready to go you can set the environment up:
`vagrant up`
This will create the two virtual machines with the name server and client.
# Usage
Now you can test the configuration
`vagrant ssh client`
Now you work within the context of the test DNS Server and the demo Traefik instance.
Now you access the whoami docker container on the server
`curl whoami.server.test`
# Dashboard
You can access the traefik Dashboard from the browser of your host machine.
[localhost:8080](http://localhost:8080/)
The port 8080 is explicitly exposed from the server. You can only have a look at the dashboard.
# Configuration Files
* [docker-compose-services.j2](provision/templates/docker-compose-services.j2)
* [docker-compose-traefik.j2](provision/templates/docker-compose-traefik.j2)
* [server-hostsfile.j2](provision/templates/server-hostsfile)