Skip to content
/ traefik Public

Traefik & Docker with Cloudflare + Letsencrypt

Notifications You must be signed in to change notification settings

0-don/traefik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 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

Releases

No releases published

Packages

No packages published