GithubHelp home page GithubHelp logo

charliecano / dockerize-traefik Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bryborge/dockerize-traefik

0.0 0.0 0.0 38 KB

Traefik reverse proxy inside a container.

License: MIT License

dockerize-traefik's Introduction

Dockerize Traefik

This project was heavily influenced by this tutorial and this project.

Note: Since the time that the above mentioned resources were authored, Traefik has undergone a huge change from 1.7 to 2.0. Virtually everything about Traefik configuration changed in this major version update. Be sure to read Traefik's documentation and look closely at the docker-compose.yml file in this project.

Prerequisites

Up and Running

  1. Create a directory that will serve as the home for your docker services.

    mkdir ~/docker && cd ~/docker
  2. Clone this repo into the newly created directory as "traefik".

    git clone https://github.com/sonofborge/dockerize-traefik.git traefik && cd traefik
  3. Create .env file and modify the variables to fit your needs.

    cp .env-example .env
    vim .env
    # Example: .env file
    
    CF_API_KEY=mycloudflareapikey
    [email protected]
    DOMAIN_NAME=domain.com
  4. Generate a user/password hash with htpasswd and store the output in config/usersfile.

    htpasswd -nB $USER
  5. Create "acme.json" and restrict file permissions.

    touch letsencrypt/acme.json && chmod 600 letsencrypt/acme.json
  6. Create the docker network.

    docker network create traefik_proxy
  7. Spin up the service.

    docker-compose up -d

    For troubleshooting and logging, run the following command:

    tail -f log/accessLog.txt
    tail -v log/traefik.log

If all went well, you should now have a traefik reverse proxy all set up!

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.