template.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. ---
  2. kind: compose
  3. metadata:
  4. icon:
  5. provider: selfh
  6. id: twingate
  7. name: Twingate_Connector
  8. description: 'The Twingate Connector is a lightweight software component that establishes secure connections between your
  9. private network and the Twingate service. It acts as a bridge, allowing authorized users to access internal resources
  10. without exposing them directly to the internet. The Connector uses strong encryption and authentication mechanisms to
  11. ensure that all data transmitted between users and resources remains confidential and secure.
  12. Project: https://www.twingate.com/
  13. Documentation: https://docs.twingate.com/docs/architecture/connectors
  14. GitHub: https://github.com/twingate/twingate-connector
  15. '
  16. version: 1.80.0
  17. author: Christian Lempa
  18. date: '2025-11-11'
  19. tags:
  20. - swarm
  21. draft: true
  22. schema: '1.2'
  23. spec:
  24. general:
  25. vars:
  26. service_name:
  27. default: twingate
  28. container_name:
  29. default: twingate_connector
  30. container_hostname:
  31. default: twingate_connector
  32. container_timezone:
  33. type: str
  34. restart_policy:
  35. type: enum
  36. options:
  37. - unless-stopped
  38. - always
  39. - on-failure
  40. - 'no'
  41. default: unless-stopped
  42. required: true
  43. twingate_version:
  44. type: str
  45. description: Twingate Connector version
  46. default: 1.79.0
  47. twingate:
  48. title: Twingate Configuration
  49. required: true
  50. vars:
  51. twingate_network:
  52. type: str
  53. description: Your Twingate network name
  54. prompt: Enter your Twingate network name
  55. twingate_log_level:
  56. type: int
  57. description: Log level (1=ERROR, 2=WARN, 3=INFO, 4=DEBUG)
  58. default: 1
  59. twingate_dns:
  60. type: str
  61. description: Local DNS server IP (optional, leave empty to use default)
  62. default: ''
  63. resources:
  64. vars:
  65. resources_enabled:
  66. type: bool
  67. default: false
  68. resources_cpu_limit:
  69. type: str
  70. default: 1.0
  71. required: true
  72. resources_cpu_reservation:
  73. type: str
  74. default: 0.25
  75. needs:
  76. - swarm_enabled=true
  77. required: true
  78. resources_memory_limit:
  79. type: str
  80. default: 1G
  81. required: true
  82. resources_memory_reservation:
  83. type: str
  84. default: 512M
  85. needs:
  86. - swarm_enabled=true
  87. required: true
  88. swarm:
  89. vars:
  90. swarm_replicas:
  91. type: int
  92. default: 1
  93. needs:
  94. - swarm_placement_mode=replicated
  95. required: true
  96. swarm_placement_host:
  97. type: str
  98. description: Target hostname for placement constraint
  99. default: ''
  100. extra: Constrains service to run on specific node by hostname
  101. swarm_enabled:
  102. type: bool
  103. default: false
  104. description: Enable Docker Swarm mode
  105. swarm_placement_mode:
  106. type: str
  107. default: replicated
  108. description: The placement mode