Files
Homelab/docker/compose/komodo-periphery.yaml
2025-02-16 10:18:25 +02:00

36 lines
1.5 KiB
YAML

secrets:
komodo_passkey:
file: ${SECRETSDIR}/komodo/komodo_passkey
services:
## Deploy Periphery container using this block,
## or deploy the Periphery binary with systemd using
## https://github.com/mbecker20/komodo/tree/main/scripts
periphery:
container_name: ${KOMODO_PERTIPHERY_CONTAINER_NAME}
image: ${KOMODO_PERTIPHERY_IMAGE}:${COMPOSE_KOMODO_IMAGE_TAG:-latest}
restart: ${KOMODO_RESTART_POLICY}
labels:
- "komodo.skip=" # Prevent Komodo from stopping with StopAllContainers
logging:
driver: ${COMPOSE_LOGGING_DRIVER:-local}
networks:
- komodo
env_file: ../env/komodo.env
environment:
PERIPHERY_REPO_DIR: ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}/repos
PERIPHERY_STACK_DIR: ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}/stacks
PERIPHERY_SSL_KEY_FILE: ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}/ssl/key.pem
PERIPHERY_SSL_CERT_FILE: ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}/ssl/cert.pem
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/mbecker20/komodo/discussions/180.
## Default: /etc/komodo.
- ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}:${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}
secrets:
- komodo_passkey