Skip to content

Instantly share code, notes, and snippets.

@yagoernandes
Created March 3, 2020 15:48
Show Gist options
  • Select an option

  • Save yagoernandes/db87f233ab3059b39f8c0416d6b3b0a1 to your computer and use it in GitHub Desktop.

Select an option

Save yagoernandes/db87f233ab3059b39f8c0416d6b3b0a1 to your computer and use it in GitHub Desktop.
Docker compose for DDNS and Cloudflare.
version: '2'
services:
cloudflare-ddns:
image: oznu/cloudflare-ddns:armhf # use 'latest' para linux ou 'armhf' or 'aarch64' se usar um Raspberry Pi
restart: always
environment:
- EMAIL=homelaber@gmail.com # coloque o e-mail utilizado no cadastro da cloudflare
- API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # coloque sua chave de api da cloudflare
- ZONE=homelab.srv.br # coloque o seu dominio
- SUBDOMAIN=blog # coloque o registro A que voce criou na cloudflare
- PROXIED=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment