Última atividade 1724795355

Hi all I created (built on an existing creation) a DNS updater for Cloudlfare https://hub.docker.com/r/spaskifilip/cloudflare-dns-updater more detailed instructions are there, but here is my compose file

cloudflare-dns-updater.yaml Bruto
1#Docker compose for cloudflare-dns-updater
2version: "3.6"
3services:
4 cloudlfare-dns-updater:
5 image: "spaskifilip/cloudflare-dns-updater:latest"
6 container_name: "cloudlfare-dns-updater"
7 volumes:
8 - app-data:/app # optional unless using the domains.json file and DOMAINS_FILE_PATH variable
9 environment:
10 CF_API_TOKEN: "YOUR_API_TOKEN" # Recomended to create a token for the zones, not use the main token
11 CF_ZONE_ID: "YOUR_ZONE_ID1,YOUR_ZONE_ID2" # Can be only 1 zone ID (usually is)
12 # Choose the method in which you get your domain records:
13 # You must choose one method
14 # DOMAINS_FILE_PATH is not needed if the DOMAINS or DNS_RECORD_COMMENT_KEY variables are set.
15 # Edit the domains.json according to the example file in the mounted volume.
16 # If you don't mount a volume, you cannot use the domains.json file and DOMAINS_FILE_PATH variable.
17 DNS_RECORD_COMMENT_KEY: "Comm1,Comm2" # Any DNS reccord that has any of the comments specified here. Can be 1 comment
18 #DOMAINS: "domain.com,example1.domain.com,example2.domain.com"
19 #DOMAINS_FILE_PATH: .\domains.json
20 SCHEDULE_MINUTES: 5
21 PROXIED: True # if proxied is set to True, TTL cannot be set/changed
22 TYPE: A # Supports either A, AAA or CNAME
23 TTL: 1
24 # Uncomment the following 3 vars if you want to change the Proxy, TTL and Type (usually it's set once, and no need to change)
25 #UPDATE_TYPE: True
26 #UPDATE_PROXY: True
27 #UPDATE_TTL: True
28 restart: "unless-stopped"
29
30volumes:
31 app-data:
32 driver: local
33 driver_opts:
34 o: bind
35 type: none
36 device: /volume1/docker/cloudflare-dns-updater