Docker Community Forums

Share and learn in the Docker community.

Override logging tag with stack deploy

Is it possible to override the logging tag defined within docker-compose.yml through docker stack deploy command?
I.e. docker stack deploy - docker-compose.yml --tag build123 stack-built123

The docker engines across the swarm is defined to log into journald which in turn pushes logs to elastcsearch and kibana.

The above is desired to quickly filter the kibana logs based on the unique tag for each stack deployed through swarm.

Without the override option, each stack deployed through the general compose file gets configured with the same tag.

Running: docker-ce=18.06.1~ce~3-0~ubuntu
OS: ubuntu-xenial-16.04-amd64-server