Skip to content

Managing Kelpie with Kelpie

Once a repository is added, Kelpie can manage its own stack like any other. On the Stacks page, follow Add them to git and add kelpie to the repository:

  • The Swarm secrets from the install become external references, so the keys never reach git. An install that passes its keys as environment variables instead (an older stack file with env_file: .env) has them moved to the stack’s secrets.env, encrypted with the age keys in the repository’s .sops.yaml. Either way the first deploy changes nothing.
  • The server is set to update_config.order: start-first: Swarm starts the new server and only stops the old one when the new one is healthy. A deployment that was converging when the old server stopped is finished by the new one. Behind Traefik, the server also gets traefik.swarm.lbswarm: "true", so requests only reach it once it is healthy.
  • The stack starts with deploy: manual, which is also the safer choice to keep. Every deploy of this stack restarts Kelpie.

Keep the docker-compose.yml you installed with. If a change ever keeps Kelpie from starting, revert it in git and deploy that file by hand, as when installing.

Change the database service with care: a deploy that restarts Postgres interrupts the server until it is back.