An example
cd /opt && rm traefik/data/dynamic/crowdsec.yml && git pull && cd /opt/traefik && docker compose up -d
Remove the old crowdsec.yml so git pull can put the new one in its place, then recreate Traefik right away with
the new config and secret. If any step fails, the next ones don’t start. Keep a copy of the old file until you’ve
checked (Server configs in git).
Where order matters
- The secret file comes before
git pullwith the new path (The secret file comes before up -d). git pullcomes beforerm -rfof what’s left of a stack: git removes its own files first (Server configs in git).- A database check comes after it has had time to start (MariaDB in a container).