All Projects β†’ tiredofit β†’ Docker Traefik Cloudflare Companion

tiredofit / Docker Traefik Cloudflare Companion

Licence: mit
Automatically Create CNAME records for containers served by Traefik

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Docker Traefik Cloudflare Companion

HostSpider
Domain information gathering tool
Stars: ✭ 61 (+3.39%)
Mutual labels:  dns, cloudflare
AdGuard-WireGuard-Unbound-Cloudflare
The Ultimate Network Security Guide πŸ”’ Protection | πŸ”Ž Privacy | πŸš€ Performance on home network 24/7 πŸ•› Accessible anywhere 🌏
Stars: ✭ 160 (+171.19%)
Mutual labels:  dns, cloudflare
cup
CUP - Cloudflare (DNS) Updater Program
Stars: ✭ 30 (-49.15%)
Mutual labels:  dns, cloudflare
docker-nginx-proxy-cloudflare-companion
Automatically update CNAME records when Docker container starts via Cloudflare
Stars: ✭ 26 (-55.93%)
Mutual labels:  dns, cloudflare
Encrypted Dns
Configuration profiles for DNS HTTPS and DNS over TLS for iOS 14 and MacOS Big Sur
Stars: ✭ 455 (+671.19%)
Mutual labels:  dns, cloudflare
cloudflare-ddns-updater
Dynamic DNS (DDNS) service based on Cloudflare! Access your home network remotely via a custom domain name without a static IP! Written in pure BASH~
Stars: ✭ 434 (+635.59%)
Mutual labels:  dns, cloudflare
flareon
🦊A cloudflare DNS over HTTPs resolver client library.
Stars: ✭ 14 (-76.27%)
Mutual labels:  dns, cloudflare
Flares
Flares πŸ”₯ is a CloudFlare DNS backup tool
Stars: ✭ 156 (+164.41%)
Mutual labels:  dns, cloudflare
Warp Plus Cloudflare
Script for getting unlimited GB on Warp+ ( https://1.1.1.1/ )
Stars: ✭ 381 (+545.76%)
Mutual labels:  dns, cloudflare
Cloudflare Sync
A nice to have, MIT-licensed tool for using Cloudflare as a dynamic DNS provider.
Stars: ✭ 269 (+355.93%)
Mutual labels:  dns, cloudflare
Sslify
Rapidly SSLify Your Server!
Stars: ✭ 168 (+184.75%)
Mutual labels:  dns, cloudflare
V3n0m Scanner
Popular Pentesting scanner in Python3.6 for SQLi/XSS/LFI/RFI and other Vulns
Stars: ✭ 847 (+1335.59%)
Mutual labels:  dns, cloudflare
Sites Using Cloudflare
πŸ’” Archived list of domains using Cloudflare DNS at the time of the CloudBleed announcement.
Stars: ✭ 1,914 (+3144.07%)
Mutual labels:  dns, cloudflare
Lexicon
Manipulate DNS records on various DNS providers in a standardized way.
Stars: ✭ 1,028 (+1642.37%)
Mutual labels:  dns, cloudflare
Ddns
🚩 θ‡ͺεŠ¨ζ›΄ζ–°εŸŸεθ§£ζžεˆ°ζœ¬ζœΊIP(ζ”―ζŒdnspod,ι˜Ώι‡ŒDNS,CloudFlare,εŽδΈΊδΊ‘,DNSCOM...)
Stars: ✭ 2,582 (+4276.27%)
Mutual labels:  dns, cloudflare
DnsTube
Access your computer from anywhere. DnsTube is a Windows .NET dynamic DNS client for Cloudflare.
Stars: ✭ 137 (+132.2%)
Mutual labels:  dns, cloudflare
Cloudflare Ddns
Script for dynamically updating a CloudFlare DNS record. (Deprecated)
Stars: ✭ 112 (+89.83%)
Mutual labels:  dns, cloudflare
Bash Utils
A collection of hand-crafted bash scripts for various common tasks.
Stars: ✭ 124 (+110.17%)
Mutual labels:  dns, cloudflare
cfdns
Command line tool for manipulating DNS of CloudFlare hosted domains
Stars: ✭ 20 (-66.1%)
Mutual labels:  dns, cloudflare
Godns
A dynamic DNS client tool supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc, written in Go.
Stars: ✭ 784 (+1228.81%)
Mutual labels:  dns, cloudflare

hub.docker.com/r/tiredofit/traefik-cloudflare-companion

Docker Pulls Docker Stars Docker Layers

Introduction

Dockerfile to build a Container to automatically update Cloudflare DNS records upon container start. A time saver if you are regularly moving containers around to different systems. This will allow you to set multiple zone's you wish to update.

  • This Container uses a customized Alpine Linux base which includes s6 overlay enabled for PID 1 Init capabilities, zabbix-agent compiled for individual container monitoring, Cron also installed along with other tools (bash,curl, less, logrotate, nano, vim) for easier management. It also supports sending to external SMTP servers..

Changelog

Authors

Table of Contents

Prerequisites

This image assumes that you are using a reverse proxy such as tiredofit/traefik

Installation

Automated builds of the image are available on Docker Hub and is the recommended method of installation.

docker pull tiredofit/traefik-cloudflare-companion:(imagetag)
  • latest - Most recent release w/Python 3 and Alpine 3.12

Quick Start

Upon startup the image looks for a label containing traefik.frontend.rule (version 1) or Host* (version2) from your running containers of either updates Cloudflare with a CNAME record of your TARGET_DOMAIN. Previous versions of this container used to only update one Zone, however with the additional of the DOMAIN environment variables it now parses the containers variables and updates the appropriate zone.

For those wishing to assign multiple CNAMEs to a container use the following format:

  • Traefik 1.x
  - traefik.normal.frontend.rule=Host:example1.domain.tld,example2.domain.tld
  • Traefik 2.x
  - traefik.http.routers.example.rule=Host(`example1.domain.tld`, `example2.domain.tld`)

or

  - traefik.http.routers.example.rule=Host(`example1.domain.tld`) || Host(`example2.domain.tld`)

Configuration

Volumes

File Description
/var/run/docker.sock You must have access to the docker socket in order to utilize this image

Environment Variables

Along with the Environment Variables from the Base image, below is the complete list of available options that can be used to customize your installation. By Default Cron and SMTP are disabled.

Parameter Description Default
TRAEFIK_VERSION What version of Traefik do you want to work against - 1 or 2 2
DOCKER_ENTRYPOINT Docker Entrypoint default (local mode) unix://var/run/docker.sock
DOCKER_HOST (optional) If using tcp connection e.g. tcp://111.222.111.32:2376
DOCKER_CERT_PATH (optional) If using tcp connection with TLS - Certificate location e.g. /docker-certs
DOCKER_TLS_VERIFY (optional) If using tcp conneciton to socket Verify TLS 1
REFRESH_ENTRIES If record exists, update entry with new values TRUE or FALSE TRUE
SWARM_MODE Enable Docker Swarm Mode TRUE or FALSE FALSE
CF_EMAIL Email address tied to Cloudflare Account - Leave Blank for Scoped API
CF_TOKEN API Token for the Domain
DEFAULT_TTL TTL to apply to records 1
TARGET_DOMAIN Destination Host to forward records to e.g. host.example.com
DOMAIN1 Domain 1 you wish to update records for.
DOMAIN1_ZONE_ID Domain 1 Zone ID from Cloudflare
DOMAIN1_PROXIED Domain 1 True or False if proxied
DOMAIN1_TARGET_DOMAIN (optional specify target_domain for Domain 1, overriding the default value from TARGET_DOMAIN)
DOMAIN1_EXCLUDED_SUB_DOMAINS (optional specify sub domain trees to be ignored in lables) ex: DOMAIN1_EXCLUDED_SUB_DOMAINS=int would not create a CNAME for *.int.example.com
DOMAIN2 (optional Domain 2 you wish to update records for.)
DOMAIN2_ZONE_ID Domain 2 Zone ID from Cloudflare
DOMAIN2_PROXIED Domain 2 True or False if proxied
DOMAIN2_TARGET_DOMAIN (optional specify target_domain for Domain 2, overriding the default value from TARGET_DOMAIN)
DOMAIN2_EXCLUDED_SUB_DOMAINS (optional specify sub domain trees to be ignored in lables) ex: DOMAIN2_EXCLUDED_SUB_DOMAINS=int would not create a CNAME for *.int.example2.com
DOMAIN3.... And so on..

Docker Secrets

CF_EMAIL and CF_TOKEN support Docker Secrets. Name your secrets either CF_EMAIL and CF_TOKEN or cf_email and cf_token.

Maintenance

Shell Access

For debugging and maintenance purposes you may want access the containers shell.

docker exec -it (whatever your container name is e.g. traefik-cloudflare-companion) bash

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].