Skip to content

Commit 9cf7d4d

Browse files
committed
add example docker-compose
1 parent ec2f01d commit 9cf7d4d

File tree

3 files changed

+55
-9
lines changed

3 files changed

+55
-9
lines changed

.github/workflows/build-and-release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ jobs:
4141
uses: softprops/[email protected]
4242
with:
4343
files: ./homedash-*
44+
append_body: true
4445
body: |
4546
The container image for this release is available from ghcr.io/mvdkleijn/homedash

README.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,15 @@ Features include:
2222

2323
Keep in mind that this is intended for local usage, so there are no provisions for authentication, etc.
2424

25-
## Support
25+
## Usage
2626

27-
Supported Go versions, see: https://endoflife.date/go
28-
Supported architectures: amd64, arm64
27+
1) Start HomeDash by either running the container or just starting the binary;
28+
2) Feed your HomeDash installation using either:
29+
- the [sidecar application](https://github.com/mvdkleijn/homedash-sidecar) or;
30+
- the REST API, see http://localhost:8080/static/docs/ for details.
31+
3) Go to http://localhost:8080/ to view the dashboard. (or whatever URL you host it on)
2932

30-
Source code and issues: https://github.com/mvdkleijn/homedash
33+
An example docker-compose.yml file is included in the root of this git repository. The example assumes you use Traefik and something like https://github.com/tecnativa/docker-socket-proxy so adjust where needed for your situation.
3134

3235
## Configuration
3336

@@ -72,12 +75,12 @@ All environment variables **must** be prefixed by "HOMEDASH_".
7275
| CORS_ALLOWEDORIGINS | cors: allowedorigins: | Origins of requests allowed by CORS | "*" |
7376
| CORS_ALLOWCREDENTIALS | cors: allowcredentials: | Allow user credentials as part of request to server | false |
7477

75-
## Usage
78+
## Support
7679

77-
1) Feed your HomeDash installation using either:
78-
- the [sidecar application](https://github.com/mvdkleijn/homedash-sidecar) or;
79-
- the REST API, see http://localhost:8080/static/docs/ for details.
80-
2) Go to http://localhost:8080/ to view the dashboard. (or whatever URL you host it on)
80+
Supported Go versions, see: https://endoflife.date/go
81+
Supported architectures: amd64, arm64
82+
83+
Source code and issues: https://github.com/mvdkleijn/homedash
8184

8285
## Licensing
8386

docker-compose.yml.example

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
version: "3"
2+
3+
networks:
4+
traefik:
5+
external: true
6+
7+
services:
8+
server:
9+
image: ghcr.io/mvdkleijn/homedash:latest
10+
container_name: homedash
11+
environment:
12+
- USER_UID=1000
13+
- USER_GID=1000
14+
restart: always
15+
networks:
16+
- traefik
17+
labels:
18+
- "traefik.enable=true"
19+
- "traefik.http.routers.homedash.entrypoints=web"
20+
- "traefik.http.routers.homedash.rule=Host(`dash.example.com`)"
21+
- "traefik.http.services.homedash.loadbalancer.server.port=8080"
22+
- "homedash.name=HomeDash"
23+
- "homedash.url=https://dash.example.com"
24+
- "homedash.icon=homedash"
25+
26+
sidecar:
27+
image: ghcr.io/mvdkleijn/homedash-sidecar:latest
28+
container_name: homedash-sidecar
29+
environment:
30+
- USER_UID=1000
31+
- USER_GID=1000
32+
- HOMEDASH_SERVER=http://dash.example.com
33+
- DOCKER_HOST=http://host.docker.internal:2375
34+
restart: always
35+
network_mode: host
36+
extra_hosts:
37+
- "host.docker.internal:host-gateway"
38+
labels:
39+
- "traefik.enable=false"
40+
depends_on:
41+
server:
42+
condition: service_healthy

0 commit comments

Comments
 (0)