Skip to content
forked from 0-don/traefik

Traefik & Docker with Cloudflare + Letsencrypt

Notifications You must be signed in to change notification settings

Bit-Barron/traefik

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Traefik & Docker with Cloudflare + Letsencrypt

Report Bug · Request Feature

Prerequisites

Docker, docker-compose, Cloudflare

  1. create .env like in .env.example

    touch .env
    nano .env
  2. TRAEFIK_USER_PASS can be created here

  3. CLOUDFLARE_DNS_API_TOKEN example is here. you need to be able to edit zone dns

  4. Important Change the traefik path of your volume in docker-compose.yml

  5. if everything is configured correctly you can run docker

    docker-compose up -d

Examples

services:
  librespeed:
  image: ghcr.io/linuxserver/librespeed
  container_name: librespeed
  restart: unless-stopped
  networks:
    - proxy
  labels:
    - 'traefik.enable=true'
    - 'traefik.http.routers.librespeed.rule=Host(`librespeed.coding.global`)'
    - 'traefik.http.routers.librespeed.entrypoints=websecure'
    - 'traefik.http.routers.librespeed.tls.certresolver=letsencrypt'
    - 'traefik.http.services.librespeed.loadbalancer.server.port=80'

networks:
  proxy:
    external: false
    name: proxy

More Examples

  1. simple static html + nginx
  2. react html frontend + nginx & express backend
  3. nextjs frontend & graphql backend
  4. graphql backend
  5. portainer

About

Traefik & Docker with Cloudflare + Letsencrypt

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published