tiredofit/docker-traefik-cloudflare-companion

Don't work with SWARM_MODE

kyusupov33 opened this issue · 1 comments

Hi, thank for your great solution. Please, explain why container does not watching swarm cluster and updating cloudflare cnames?

version: '3.5'

services:
  traefik-cloudflare-companion:
    image: tiredofit/traefik-cloudflare-companion
    networks:
      - {{ monitoring_network_name }}
      - {{ traefik_network_name }}
      - internal
    environment:
      - TIMEZONE={{ TZ }}
      - TRAEFIK_VERSION="2"
      - CF_EMAIL={{ cf_api_email }}
      - CF_TOKEN={{ cf_api_key }}
      - TARGET_DOMAIN={{ app_domain_name }}
      - DOMAIN1={{ app_domain_name }}
      - DOMAIN1_ZONE_ID={{ cf_api_zone }}
      - DOMAIN1_PROXIED="TRUE"
      - SWARM_MODE="TRUE"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro

networks:
  {{ monitoring_network_name }}:
    driver: overlay
    attachable: true
    name: {{ monitoring_network_name }}
  {{ traefik_network_name }}:
    external: true
    name: {{ traefik_network_name }}
  internal:
    external: false

companion logs:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.


[s6-init] ensuring user provided files have correct perms...exited 0.


[fix-attrs.d] applying ownership & permissions fixes...


[fix-attrs.d] 00-functions: applying... 


[fix-attrs.d] 00-functions: exited 0.


[fix-attrs.d] 01-s6: applying... 


[fix-attrs.d] 01-s6: exited 0.


[fix-attrs.d] 02-zabbix: applying... 


[fix-attrs.d] 02-zabbix: exited 0.


[fix-attrs.d] 03-logrotate: applying... 


[fix-attrs.d] 03-logrotate: exited 0.


[fix-attrs.d] done.


[cont-init.d] executing container initialization scripts...


[cont-init.d] 00-startup: executing... 


[cont-init.d] 00-startup: exited 0.


[cont-init.d] 01-timezone: executing... 


[NOTICE] ** [timezone] Timezone: Setting to 'Europe/Moscow' from 'Etc/GMT'


[cont-init.d] 01-timezone: exited 0.


[cont-init.d] 02-permissions: executing... 


[cont-init.d] 02-permissions: exited 0.


[cont-init.d] 03-zabbix: executing... 


[cont-init.d] 03-zabbix: exited 0.


[cont-init.d] 04-cron: executing... 


[NOTICE] ** [cron] Disabling Cron


[cont-init.d] 04-cron: exited 0.


[cont-init.d] 05-smtp: executing... 


[NOTICE] ** [smtp] Disabling SMTP Features


[cont-init.d] 05-smtp: exited 0.


[cont-init.d] 10-cloudflare-companion: executing... 


[cont-init.d] 10-cloudflare-companion: exited 0.


[cont-init.d] 99-container: executing... 


[cont-init.d] 99-container: exited 0.


[cont-init.d] done.


[services.d] starting services


[services.d] done.


[INFO] ** [traefik-cloudflare-companion] Starting Traefik Cloudflare Companion


[INFO] ** [zabbix] Starting Zabbix Agent