Code Monkey home page Code Monkey logo

traefik's Introduction

traefik

Projeto teste para proxy reverse Traefik

Requisitos

  • Docker
  • Docker-compose
  • Git
  • mkcert

Curso Traefik

codigofacilito

Clone Project

$ git clone [email protected]:leonardodg/traefik.git

Config

Add Hosts file windows - After GET IP - Sample IP 127.0.0.1 AND HOST`s nginx.app.test,apache.app.test

$ echo. && echo 127.0.0.1 app.test >> %WINDIR%\System32\Drivers\Etc\Hosts
$ echo. && echo 127.0.0.1 nginx.app.test >> %WINDIR%\System32\Drivers\Etc\Hosts
$ echo. && echo 127.0.0.1 apache.app.test >> %WINDIR%\System32\Drivers\Etc\Hosts

Create networks that will be used by Traefik:

$ docker network create traefik_proxy

Run Traefik

$ docker-compose up -d
$ docker-compose -f ./docker/nginx.yml up -d
$ docker-compose -f ./docker/apache.yml up -d

Link's Traefik

[Dashboard] -> http://app.test:8080/dashboard/#/
[API] - > http://app.test:8080/api/rawdata
[Nginx] -> https://nginx.app.test/
[Apache] -> https://apache.app.test/ \

Mkcert

If it's the firt install of mkcert, run

$ mkcert -install

Generate certificate for domain "docker.localhost", "domain.local" and their sub-domains

$ mkcert -cert-file certs/app.test.pem -key-file certs/app.test-key.pem  app.test "*.app.test" apache.app.test nginx.app.test localhost 127.0.0.1 ::1

License

MIT

traefik's People

Contributors

leonardodg avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.