Created
August 7, 2023 15:15
-
-
Save dragonfire1119/60c46a5021d8eb2dfb04d42fc3db5d6d to your computer and use it in GitHub Desktop.
Twingate Docker Compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment