CDIST-TYPE__DOCKER_STACK(7)
π cdist-type__docker_stack π
okay bestie, so this is cdist-type__docker_stack from the cdist manual pages (section 7, if you're keeping score) β and it's literally the type that manages your Docker stacks for you. no cap. π³β¨
πΈ DESCRIPTION πΈ
This type manages service stacks. that's the whole vibe, she's a manager, she runs the stack, she's the main character of your swarm.
NOTE: β οΈ so likeβ¦ there is no easy way to tell whether a stack actually needs to be updated. meaning docker stack deploy gets run every single time this type is invoked. every time. it's giving "did you check?" energy. BUT β and this is important, bestie β that does not mean this type isn't idempotent. if Docker doesn't detect any changes, the existing stack just stays as it is. nothing happens. chill. πβ¨
β¨ OPTIONAL PARAMETERS β¨
okay so these are optional, meaning you can pass them but you don't have to. the range, honestly.
compose-fileβ the path to your compose file π and if it's-(that's a dash, bestie, just one little dash) then it reads from standard input instead. very demure. very mindful. πΈstateβ either'present'or'absent', and it defaults to'present'. here's the breakdown, iykyk:presentβ the stack is deployed πβ¨absentβ the stack is removed ππ
π EXAMPLES π
okay here's the moment you've all been waiting for, the actual usage, the serving:
# Deploys 'foo' stack defined in 'docker-compose.yml' compose file
__docker_stack foo --compose-file docker-compose.yml
look at her go. foo is the stack name, docker-compose.yml is the compose file, and she ate. π
π AUTHORS π
Δ½ubomΓr KuΔera <lubomir.kucera.jr at gmail.com> β thank you for your service king π«Ά
π COPYING π
Copyright (C) 2018 Δ½ubomΓr KuΔera. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. π
β COPYRIGHT β
ungleich GmbH 2021 π
and that's the whole page bestie!! this was version 7.0.0 from Jul 31, 2022, brought to you by the cdist girlies, and honestly? iconic. go deploy some stacks. slay. π¦πβ¨
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms