cli-daemons.yml 664 B

12345678910111213141516171819202122232425262728293031323334
  1. version: "3.7"
  2. #docker network create -d overlay --attachable client-net
  3. networks:
  4. client-net:
  5. external: true
  6. services:
  7. daemons:
  8. image: registry.orbita1.ru/client/supervisord:latest
  9. deploy:
  10. mode: global
  11. endpoint_mode: dnsrr
  12. update_config:
  13. parallelism: 1
  14. failure_action: rollback
  15. delay: 30s
  16. restart_policy:
  17. condition: any
  18. delay: 5s
  19. window: 120s
  20. networks:
  21. - client-net
  22. env_file:
  23. - .env
  24. environment:
  25. - SERVICE_IGNORE=true
  26. - LOG_OUTPUT=gelf
  27. logging:
  28. driver: "json-file"
  29. options:
  30. max-size: "12m"
  31. max-file: "5"