spaskifilip hat die Gist bearbeitet . Zu Änderung gehen
1 file changed, 36 insertions
cloudflare-dns-updater.yaml(Datei erstellt)
@@ -0,0 +1,36 @@ | |||
1 | + | #Docker compose for cloudflare-dns-updater | |
2 | + | version: "3.6" | |
3 | + | services: | |
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 | + | ||
30 | + | volumes: | |
31 | + | app-data: | |
32 | + | driver: local | |
33 | + | driver_opts: | |
34 | + | o: bind | |
35 | + | type: none | |
36 | + | device: /volume1/docker/cloudflare-dns-updater |
Neuer
Älter