1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-25 06:49:23 +01:00

feat: supports any service name in swarm mode by looking internally the hostname (#3193)

This commit is contained in:
Amir Raminfar
2024-08-12 09:34:53 -07:00
committed by GitHub
parent bdf19587f2
commit aa824453a5
3 changed files with 25 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ networks:
Note that the `DOZZLE_MODE` environment variable is set to `swarm`. This tells Dozzle to automatically discover other Dozzle instances in the swarm. The `overlay` network is used to create the mesh network between the different Dozzle instances.
> [!NOTE]
> Due to implementation details, the name for the service must be exactly `dozzle`. This is because Dozzle uses the service name to discover other Dozzle instances in the swarm. In the future, it would make sense to query the Docker API for all services with the current container ID.
> Due to implementation details, <strike>the name for the service must be exactly `dozzle`</strike>. This is no longer required starting with version `v8.2`. You can name the service anything you want. The service name is automatically detected by Dozzle using `com.docker.swarm.service.name` label.
## Setting up simple authentication in Swarm Mode