migrate
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# Twingate connector credentials
|
||||
TWINGATE_ACCESS_TOKEN=<< twingate_access_token >>
|
||||
TWINGATE_REFRESH_TOKEN=<< twingate_refresh_token >>
|
||||
@@ -0,0 +1,17 @@
|
||||
services:
|
||||
<< service_name >>:
|
||||
image: docker.io/twingate/connector:1.88.0
|
||||
restart: << restart_policy >>
|
||||
container_name: << container_name >>
|
||||
hostname: << container_hostname >>
|
||||
environment:
|
||||
- TZ=<< container_timezone >>
|
||||
- TWINGATE_NETWORK=<< twingate_network >>
|
||||
- TWINGATE_ACCESS_TOKEN=${TWINGATE_ACCESS_TOKEN}
|
||||
- TWINGATE_REFRESH_TOKEN=${TWINGATE_REFRESH_TOKEN}
|
||||
- TWINGATE_LOG_LEVEL=<< twingate_log_level >>
|
||||
<%- if twingate_dns %>
|
||||
- TWINGATE_DNS=<< twingate_dns >>
|
||||
<%- endif %>
|
||||
sysctls:
|
||||
net.ipv4.ping_group_range: "0 2147483647"
|
||||
@@ -0,0 +1,184 @@
|
||||
{
|
||||
"slug": "twingate-connector-compose",
|
||||
"kind": "compose",
|
||||
"metadata": {
|
||||
"name": "Twingate_Connector",
|
||||
"description": "Lightweight agent that establishes secure zero-trust connections between your private network and the Twingate service, allowing authorized users to access internal resources without a VPN.",
|
||||
"tags": [],
|
||||
"icon": {
|
||||
"provider": "selfhst",
|
||||
"id": "twingate"
|
||||
},
|
||||
"draft": false,
|
||||
"version": {
|
||||
"name": "1.88.0",
|
||||
"source_dep_name": "docker.io/twingate/connector",
|
||||
"source_dep_version": "1.88.0"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"title": "General",
|
||||
"name": "general",
|
||||
"items": [
|
||||
{
|
||||
"name": "service_name",
|
||||
"type": "str",
|
||||
"title": "Service Name",
|
||||
"required": false,
|
||||
"default": "twingate",
|
||||
"config": {
|
||||
"placeholder": "twingate"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "container_name",
|
||||
"type": "str",
|
||||
"title": "Container Name",
|
||||
"required": false,
|
||||
"default": "twingate-connector",
|
||||
"config": {
|
||||
"placeholder": "twingate-connector"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "container_hostname",
|
||||
"type": "str",
|
||||
"title": "Container Hostname",
|
||||
"required": false,
|
||||
"default": "twingate-connector",
|
||||
"config": {
|
||||
"placeholder": "twingate-connector"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "container_timezone",
|
||||
"type": "str",
|
||||
"title": "Container Timezone",
|
||||
"required": false,
|
||||
"config": {
|
||||
"placeholder": "Europe/Berlin"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "restart_policy",
|
||||
"type": "enum",
|
||||
"title": "Restart Policy",
|
||||
"required": true,
|
||||
"default": "unless-stopped",
|
||||
"config": {
|
||||
"options": [
|
||||
"unless-stopped",
|
||||
"always",
|
||||
"on-failure",
|
||||
"no"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Twingate Configuration",
|
||||
"name": "twingate",
|
||||
"items": [
|
||||
{
|
||||
"name": "twingate_network",
|
||||
"type": "str",
|
||||
"title": "Network Name",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"name": "twingate_access_token",
|
||||
"type": "secret",
|
||||
"title": "Access Token",
|
||||
"required": true,
|
||||
"description": "Connector access token."
|
||||
},
|
||||
{
|
||||
"name": "twingate_refresh_token",
|
||||
"type": "secret",
|
||||
"title": "Refresh Token",
|
||||
"required": true,
|
||||
"description": "Connector refresh token."
|
||||
},
|
||||
{
|
||||
"name": "twingate_log_level",
|
||||
"type": "int",
|
||||
"title": "Log Level",
|
||||
"required": false,
|
||||
"default": 1,
|
||||
"description": "Log level (1=ERROR, 2=WARN, 3=INFO, 4=DEBUG)",
|
||||
"config": {
|
||||
"slider": true,
|
||||
"min": 1,
|
||||
"max": 4,
|
||||
"step": 1,
|
||||
"placeholder": "1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "twingate_dns",
|
||||
"type": "str",
|
||||
"title": "DNS Server",
|
||||
"required": false,
|
||||
"default": "",
|
||||
"description": "Local DNS server IP (optional, leave empty to use default)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Resource Limits",
|
||||
"toggle": "resources_enabled",
|
||||
"name": "resources",
|
||||
"items": [
|
||||
{
|
||||
"name": "resources_enabled",
|
||||
"type": "bool",
|
||||
"title": "Resources Enabled",
|
||||
"required": false,
|
||||
"default": false
|
||||
},
|
||||
{
|
||||
"name": "resources_cpu_limit",
|
||||
"type": "str",
|
||||
"title": "Resources Cpu Limit",
|
||||
"required": true,
|
||||
"default": 1,
|
||||
"config": {
|
||||
"placeholder": "1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "resources_cpu_reservation",
|
||||
"type": "str",
|
||||
"title": "Resources Cpu Reservation",
|
||||
"required": true,
|
||||
"default": 0.25,
|
||||
"config": {
|
||||
"placeholder": "0.25"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "resources_memory_limit",
|
||||
"type": "str",
|
||||
"title": "Resources Memory Limit",
|
||||
"required": true,
|
||||
"default": "1G",
|
||||
"config": {
|
||||
"placeholder": "1G"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "resources_memory_reservation",
|
||||
"type": "str",
|
||||
"title": "Resources Memory Reservation",
|
||||
"required": true,
|
||||
"default": "512M",
|
||||
"config": {
|
||||
"placeholder": "512M"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user