From c55654b3fec8f903a41a5bed0a2c024977147200 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Wed, 15 Jan 2025 13:45:22 -0600 Subject: [PATCH] add komodo --- hosts/ps10rp/komodo-periphery/.komodo-env | 1 + hosts/ps10rp/komodo-periphery/.ts-env | 1 + hosts/ps10rp/komodo-periphery/compose.yaml | 62 ++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 hosts/ps10rp/komodo-periphery/.komodo-env create mode 100644 hosts/ps10rp/komodo-periphery/.ts-env create mode 100644 hosts/ps10rp/komodo-periphery/compose.yaml diff --git a/hosts/ps10rp/komodo-periphery/.komodo-env b/hosts/ps10rp/komodo-periphery/.komodo-env new file mode 100644 index 000000000..e8adddce9 --- /dev/null +++ b/hosts/ps10rp/komodo-periphery/.komodo-env @@ -0,0 +1 @@ +PERIPHERY_PASSKEYS="" diff --git a/hosts/ps10rp/komodo-periphery/.ts-env b/hosts/ps10rp/komodo-periphery/.ts-env new file mode 100644 index 000000000..4c297bf5a --- /dev/null +++ b/hosts/ps10rp/komodo-periphery/.ts-env @@ -0,0 +1 @@ +TS_AUTHKEY="" diff --git a/hosts/ps10rp/komodo-periphery/compose.yaml b/hosts/ps10rp/komodo-periphery/compose.yaml new file mode 100644 index 000000000..1a5cd9c4f --- /dev/null +++ b/hosts/ps10rp/komodo-periphery/compose.yaml @@ -0,0 +1,62 @@ +--- +version: "3.7" + +services: + tailscale-komodo-periphery: + image: ghcr.io/tailscale/tailscale:latest + container_name: tailscale-komodo-periphery + cap_add: + - net_admin + - sys_module + environment: + - TS_STATE_DIR=/var/lib/tailscale + - TS_ENABLE_METRICS=true + - TS_HOSTNAME=komodo-periphery-ps10rp + env_file: + - .ts-env + labels: + - "com.centurylinklabs.watchtower.scope=komodo" + network_mode: service:komodo-periphery + restart: always + volumes: + - tailscale:/var/lib/tailscale + devices: + - /dev/net/tun:/dev/net/tun + + watchtower: + image: ghcr.io/containrrr/watchtower:latest + container_name: komodo-periphery-watchtower + command: --scope komodo + environment: + - TZ=America/Chicago + - WATCHTOWER_HTTP_API_METRICS=true + - WATCHTOWER_HTTP_API_TOKEN=token + - WATCHTOWER_CLEANUP=true + - WATCHTOWER_POLL_INTERVAL=3600 + labels: + - "com.centurylinklabs.watchtower.scope=komodo" + network_mode: service:komodo-periphery + restart: always + volumes: + - /var/run/docker.sock:/var/run/docker.sock + + komodo-periphery: + image: ghcr.io/mbecker20/periphery:latest + container_name: komodo-periphery + env_file: + - .env + environment: + - TZ=America/Chicago + labels: + - "com.centurylinklabs.watchtower.scope=komodo" + restart: always + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - /proc:/proc + - komodo-periphery-repos:/etc/komodo/repos + - komodo-periphery-stacks:/etc/komodo/stacks + +volumes: + tailscale: + komodo-periphery-repos: + komodo-periphery-stacks: