Git Product home page Git Product logo

traefik-docker-compose's Introduction

This is a Traefik docker-compose project

Basic description

I'm happy that you found my project!

So, this whole thing is optimized to run on a single server but I am working on deploying this to docker swarms.

I'm not sure when I'll be done with it, as I have to look into docker swarms.

Network

This docker compose file features a seperete nework for the traefik service instructions on how to use it are below.

First we need to 'import' the network into the project using this at the end of the compose file:

networks:
  traefik:
    external:
      name: traefik_bridge

Then we need to use the traefik network for the services we proxy via traefik also as you see we use a network called 'default' here, this is the default network created by each project this is used to interconnect the service to the others in the same project:

    networks:
      - default
      - traefik

The project structure

The project has a simple structure, and it is as follows:

  • configs -> folder for service configuration files (there shouldn't be any private data, passwords or api-tokens in there)
  • env_files -> config files for each service, instead of defining in the docker-compose file
  • secrets -> in there are all secrets, like api tokens and such
  • volumes -> data created by the services, each service has it's own folder, and the file structure is the same as in the service
  • .env.sample -> rename this to .env and change the the value of "TRAEFIK_LABEL_HOST" to your domain/needs
  • stack.yml -> this is not yet available to public as I am still figuring things out with this one, but just so you know!

Passwords and secret data

In this project there're secrets used, meaning, all passwords are in a seperate folder, and will NOT be pushed, as they are listed in the .gitignore file.

There might be some sample values, just open the project in Visual Studio Code, or any editor of your choice and search for the term "SAMPLE_VALUE", and replace it with a value that makes sense.

Generate some digests here

Standards

I'm trying to be as close to the standards as possible. Here is what I am using.

Conventional Commits 1.0.0 Semantic Versioning 2.0.0

traefik-docker-compose's People

Contributors

hypnotist1148 avatar

Watchers

 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.