Skip to content

Adopting existing stacks

When Swarm stacks or Compose projects run on your hosts that no repository describes, the Stacks page says so. Its Add them to git link opens Deployed without Kelpie, which lists them. Kelpie writes a compose file from what is running, which you review and commit to a repository.

The new stack starts in deploy: manual, so nothing changes until you deploy it. A faithful file updates the stack in place without restarting its tasks.

Read it before committing:

  • With KELPIE_AGE_KEY set, values that look like passwords, keys, or tokens move to an encrypted secrets.env, and the compose file refers to them as ${NAME}. Other environment variables are copied as they are; move any secret the check missed yourself. Without an age key, everything is copied as it is.
  • Secrets and configs become external references.
  • For Compose projects, the image’s own environment variables and labels show up too. Remove the ones you didn’t set yourself.

To adopt Kelpie’s own stack, see Managing Kelpie with Kelpie.