Enable network filtering for docker swarm discovery (#143)

This commit is contained in:
n1xx1
2022-11-17 15:38:44 +01:00
committed by GitHub
parent 298ea8eef9
commit c2b23d40c7
3 changed files with 83 additions and 15 deletions
+4
View File
@@ -23,6 +23,7 @@ services:
replicas: 1
labels:
- "mc-router.host=foo.host.name,bar.host.name"
- "mc-router.network=minecraft" # not required in this case
volumes:
- mcfoobardata:/data
networks:
@@ -39,6 +40,9 @@ services:
replicas: 1
labels:
- "mc-router.host=baz.host.name"
- "mc-router.network=minecraft" # required since we are exposing a port
ports:
- "25575:25575" # RCON
volumes:
- mcbazdata:/data
networks: