Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't work with SWARM_MODE #42

Open
kyusupov33 opened this issue Jan 11, 2021 · 1 comment
Open

Don't work with SWARM_MODE #42

kyusupov33 opened this issue Jan 11, 2021 · 1 comment

Comments

@kyusupov33
Copy link

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

@kyusupov33
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant