From 4bbe21094e55d050782699c39b65e2c45cbd5916 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 2 Nov 2024 22:42:53 -0400 Subject: [PATCH] move cf and twingate to npm --- docker/npm/docker-compose.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docker/npm/docker-compose.yml b/docker/npm/docker-compose.yml index 16489ba..890fe0a 100644 --- a/docker/npm/docker-compose.yml +++ b/docker/npm/docker-compose.yml @@ -34,4 +34,22 @@ services: - SSMTP_USER=$SSMTP_USER - SSMTP_PASSWORD=$SSMTP_PASSWORD - SSMTP_TLS=YES - restart: always \ No newline at end of file + restart: always + + cf-tunnel: + restart: unless-stopped + image: cloudflare/cloudflared@sha256:119c1712ba89bfb32a404ef6b949284519a99f3de5c1202f483a6800fd1c638e + command: tunnel --no-autoupdate run --token $CF_TOKEN + + twingate-famous-alligator: + image: twingate/connector@sha256:f5aded82f662144c56c87e4238ea4a20abcc525edc5ad7cdecdac187cf274520 + container_name: twingate-famous-alligator + restart: always + environment: + - TWINGATE_NETWORK=$TWINGATE_NETWORK + - TWINGATE_ACCESS_TOKEN=$TWINGATE_ACCESS_TOKEN + - TWINGATE_REFRESH_TOKEN=$TWINGATE_REFRESH_TOKEN + - TWINGATE_LABEL_HOSTNAME=${HOSTNAME} + - TWINGATE_LABEL_DEPLOYED_BY=docker + sysctls: + - net.ipv4.ping_group_range=0 2147483647 \ No newline at end of file