# KNELSecretsManager Go CLI (ukrrs-secretsmgr-cli) — always-hot container per
# house convention (Charles 2026-08-31): docker exec per invocation, never
# docker run per call. Scoped ops only; NEVER bare compose down.
#
#   docker compose -f /path/to/this up -d smcli
#   docker exec -i ukrrs-secretsmgr-cli smcli env creds/cloudron
#
# Credentials for the vault account come from a 0600 env file (SM_EMAIL,
# SM_PASSWORD, SM_TOTP_SECRET, SM_SERVER) — never committed.
name: knel-secretsmanager
services:
  smcli:
    image: git.knownelement.com/knel/knel-secretsmanager-cli@sha256:41fe9bf298ba6d338ee658cf84f9914f7d607bfb27232c8deb2479c22ed0545d
    container_name: ukrrs-secretsmgr-cli
    restart: unless-stopped
    entrypoint: ["sleep", "infinity"]
    init: true
    env_file:
      - path: /home/reachableceo/.creds/smcli.env
        required: false
    environment:
      SM_STATE_DIR: /data/state
    volumes:
      - smcli-state:/data/state
volumes:
  smcli-state:
