File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -521,6 +521,7 @@ CADDY_DOCKER_MODE=<string>
521
521
CADDY_DOCKER_POLLING_INTERVAL=<duration >
522
522
CADDY_DOCKER_PROCESS_CADDYFILE=<bool >
523
523
CADDY_DOCKER_PROXY_SERVICE_TASKS=<bool >
524
+ CADDY_DOCKER_NO_SCOPE=<bool, default scope used>
524
525
```
525
526
526
527
Check **examples** folder to see how to set them on a Docker Compose file.
Original file line number Diff line number Diff line change @@ -168,8 +168,11 @@ func (dockerLoader *DockerLoader) monitorEvents() {
168
168
169
169
func (dockerLoader * DockerLoader ) listenEvents () {
170
170
args := filters .NewArgs ()
171
- args .Add ("scope" , "swarm" )
172
- args .Add ("scope" , "local" )
171
+ if ! isTrue .MatchString (os .Getenv ("CADDY_DOCKER_NO_SCOPE" )) {
172
+ // This env var is useful for Podman where in some instances the scope can cause some issues.
173
+ args .Add ("scope" , "swarm" )
174
+ args .Add ("scope" , "local" )
175
+ }
173
176
args .Add ("type" , "service" )
174
177
args .Add ("type" , "container" )
175
178
args .Add ("type" , "config" )
You can’t perform that action at this time.
0 commit comments