mirror of
https://github.com/amir20/dozzle.git
synced 2026-01-03 11:35:00 +01:00
chore(docs): adds docs for hostname label
This commit is contained in:
30
docs/guide/hostname.md
Normal file
30
docs/guide/hostname.md
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
title: Hostname
|
||||
---
|
||||
|
||||
# Changing Dozzle's Hostname
|
||||
|
||||
Dozzle's default connection is called localhost. Using `--hostname` flag Dozzle's name can be changed to anything. This value be will shown on the page title and under the Dozzle logo.
|
||||
|
||||
Changing the label for localhost also changes the label for the `localhost` connection which is displayed under the multi-host menu. Below is an example of using `--hostname` to change the name of Dozzle's subheader to `mywebsite.xyz`.
|
||||
|
||||
::: code-group
|
||||
|
||||
```sh
|
||||
docker run --volume=/var/run/docker.sock:/var/run/docker.sock -p 8080:8080 amir20/dozzle --hostname mywebsite.xyz
|
||||
```
|
||||
|
||||
```yaml [docker-compose.yml]
|
||||
version: "3"
|
||||
services:
|
||||
dozzle:
|
||||
image: amir20/dozzle:latest
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
ports:
|
||||
- 8080:8080
|
||||
environment:
|
||||
DOZZLE_HOSTNAME: mywebsite.xyz
|
||||
```
|
||||
|
||||
:::
|
||||
Reference in New Issue
Block a user