From e5beda0fff891e944416d54c57fcb372a255335e Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 29 Dec 2025 21:54:01 -0600 Subject: [PATCH] added komodo periphery --- docker-compose.yml | 3 +++ komodo/periphery.compose.yaml | 46 +++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 komodo/periphery.compose.yaml diff --git a/docker-compose.yml b/docker-compose.yml index 917954c..53bd9c0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,6 @@ +include: + - komodo/periphery.compose.yaml + services: portainer-agent: image: portainer/agent diff --git a/komodo/periphery.compose.yaml b/komodo/periphery.compose.yaml new file mode 100644 index 0000000..827c606 --- /dev/null +++ b/komodo/periphery.compose.yaml @@ -0,0 +1,46 @@ +#################################### +# 🦎 KOMODO COMPOSE - PERIPHERY 🦎 # +#################################### + +## This compose file will deploy: +## 1. Komodo Periphery + +services: + periphery: + image: ghcr.io/moghtech/komodo-periphery:${COMPOSE_KOMODO_IMAGE_TAG:-latest} + labels: + komodo.skip: # Prevent Komodo from stopping with StopAllContainers + restart: unless-stopped + ## https://komo.do/docs/connect-servers#configuration + environment: + PERIPHERY_ROOT_DIRECTORY: ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo} + ## Pass the same passkey as used by the Komodo Core connecting to this Periphery agent. + PERIPHERY_PASSKEYS: ${KOMODO_PASSKEY} + ## Make server run over https + PERIPHERY_SSL_ENABLED: true + ## Specify whether to disable the terminals feature + ## and disallow remote shell access (inside the Periphery container). + PERIPHERY_DISABLE_TERMINALS: false + ## If the disk size is overreporting, can use one of these to + ## whitelist / blacklist the disks to filter them, whichever is easier. + ## Accepts comma separated list of paths. + ## Usually whitelisting just /etc/hostname gives correct size for single root disk. + PERIPHERY_INCLUDE_DISK_MOUNTS: /etc/hostname + # PERIPHERY_EXCLUDE_DISK_MOUNTS: /snap,/etc/repos + ports: + - "8120:8120" + volumes: + ## Mount external docker socket + - /var/run/docker.sock:/var/run/docker.sock + ## Allow Periphery to see processes outside of container + - /proc:/proc + ## Specify the Periphery agent root directory. + ## Must be the same inside and outside the container, + ## or docker will get confused. See https://github.com/moghtech/komodo/discussions/180. + ## Default: /etc/komodo. + - ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}:${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo} + ## If periphery is being run remote from the core server, ports need to be exposed + # ports: + # - 8120:8120 + ## If you want to use a custom periphery config file, use command to pass it to periphery. + # command: periphery --config-path ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}/periphery.config.toml \ No newline at end of file