From ef8b5a7620bdd46e4c871c4cdc4f7a2393e3ffa5 Mon Sep 17 00:00:00 2001 From: M_Viper Date: Tue, 13 Feb 2024 06:08:48 +0000 Subject: [PATCH] =?UTF-8?q?install-twingate-on-docker/docker-compose.yml?= =?UTF-8?q?=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install-twingate-on-docker/docker-compose.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 install-twingate-on-docker/docker-compose.yml diff --git a/install-twingate-on-docker/docker-compose.yml b/install-twingate-on-docker/docker-compose.yml new file mode 100644 index 0000000..330aec4 --- /dev/null +++ b/install-twingate-on-docker/docker-compose.yml @@ -0,0 +1,15 @@ +version: '3.8' # Use an appropriate version of Docker Compose + +services: + twingate_connector: # Define a service named "twingate_connector" + restart: always # Ensure the container restarts automatically if it exits (e.g., after a crash or system reboot) + image: "twingate/connector:1" # Use the "twingate/connector" Docker image with the "latest" tag + environment: + - SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt + - TWINGATE_API_ENDPOINT=/connector.stock + - TWINGATE_NETWORK= # Set the environment variable "TWINGATE_NETWORK" + - TWINGATE_ACCESS_TOKEN= # Set the environment variable "TWINGATE_ACCESS_TOKEN" + - TWINGATE_REFRESH_TOKEN= # Set the environment variable "TWINGATE_REFRESH_TOKEN" + - TWINGATE_LABEL_HOSTNAME=twingate # Set the environment variable "TWINGATE_LABEL_HOSTNAME" + sysctls: + - "net.ipv4.ping_group_range=0 65535" # Set the sysctl parameter "net.ipv4.ping_group_range" to allow user IDs in the range 0 to 65535 to create ICMP echo request (ping) sockets \ No newline at end of file