Stack Config ignore_services does not work with Swarm stacks
Author: mm-igefaCreated Jun 3, 2026Updated Sep 12, 2026
With v2.2.0 it seems the ignore_services config option for stacks does not apply to swarm stacks. The whole stack is marked as unhealthy, when an ignored service exits.
Example compose
services:
ignoreme:
image: busybox
command: ['sleep', '5']
restart: no # for compose
deploy:
restart_policy:
condition: none # for swarm
app:
image: busybox
command: ['sleep', 'infinity']Example toml
[[stack]]
name = "komodo01-test-ignore-swarm"
tags = ["komodo01"]
[stack.config]
project_name = "test-ignore-swarm"
swarm = "swarm"
linked_repo = "komodo-komodo01"
run_directory = "test-ignore"
ignore_services = ["ignoreme"]Using the same compose file for a compose stack works.
[[stack]]
name = "komodo01-test-ignore-compose"
tags = ["komodo01"]
[stack.config]
project_name = "test-ignore-compose"
server = "komodo01"
linked_repo = "komodo-komodo01"
run_directory = "test-ignore"
ignore_services = ["ignoreme"]Source: moghtech/komodo