Skip to content

Commit

Permalink
fix(post): fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
timothystewart6 committed Jan 15, 2024
1 parent c29c0b4 commit 37fc32d
Showing 1 changed file with 35 additions and 17 deletions.
52 changes: 35 additions & 17 deletions _posts/2024-01-15-homepage-dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ See [this post](/posts/docker-compose-install/) on how to install `docker` and `

## Install

make a directory
Make a directory

```bash
mkdir homepage
Expand All @@ -48,7 +48,7 @@ create a `docker-compose.yaml` file
touch docker-compose.yaml
```

edit it
Edit it

```bash
nano docker-compose.yaml
Expand All @@ -58,7 +58,7 @@ nano docker-compose.yaml
mkdir config
```

place the contents
Place the contents

```yaml
version: "3.3"
Expand All @@ -77,13 +77,13 @@ services:
PGID: $PGID # read them from .env
```
create an `.env` file for variables
Create an `.env` file for variables

```bash
touch .env
```

edit it
Edit it

```bash
nano .env
Expand All @@ -96,17 +96,17 @@ PUID=1000
PGID=1000
```

save and exit
Dave and exit

start the container
Start the container

```bash
docker compose up -d
```

Give it a few seconds to start (could take up to 1 min depending on your docker machine)

you can check by running
You can check by running:

```bash
docker ps
Expand Down Expand Up @@ -148,7 +148,7 @@ providers:
```

save, exit, and revisit your homepage
Save, exit, and revisit your homepage

Should refresh, if not click the refresh in lower right hand corner

Expand All @@ -158,7 +158,7 @@ Title of document should now be

If we want, we can also customize the background but updating this file too

edit `settings.yaml`
Edit `settings.yaml`

```bash
nano settings.yaml
Expand Down Expand Up @@ -228,15 +228,15 @@ background:
weatherapi: weatherapiapikey
```

Why do this? Isn't this a lot of work?

> *Note: Why do this? Isn't this a lot of work?*
1 word, it's "repeatable". We can back up our yaml files and even share them if we want. Also works great with Kubernetes since you can pass a `ConfigMap` file to your deployment thus not needed a volume.
{: .prompt-info }

## Services

services are configured in `service.yaml` and really are button for accessing some of your services
Services are configured in `service.yaml` and really are button for accessing some of your services

edit `service.yaml`
Edit `service.yaml`

```bash
nano config/service.yaml
Expand Down Expand Up @@ -288,12 +288,19 @@ As you can see we configured 4 services:
- one that use [Material Design icons](https://pictogrammers.com/library/mdi/)
- one that used [Simple Icons](https://simpleicons.org/)

** If you're using Material Design Icons or Simple Icons you can change the color of the icon by appending the hex values to the icon name as shown above.
> *Note: If you're using Material Design Icons or Simple Icons you can change the color of the icon by appending the hex values to the icon name as shown above.*
{: .prompt-info }

## Service Widgets

These extend the functionality of service buttons. Optional but cool.

Edit `service.yaml`

```bash
nano config/service.yaml
```

```yaml
---
# For configuration options and examples, please see:
Expand Down Expand Up @@ -336,13 +343,24 @@ These extend the functionality of service buttons. Optional but cool.
description: homepage
```

Stop the Docker container

`docker stop homepage`

Start the Docker container

`docker start homepage`

> *Note: I have noticed that sometimes you need to recreate the container in order for the variables from your `.env` to be replaced. Not sure if this is a feature or a bug, but `docker compose up -d --force-recreate` will stop the old container, remove it, and create a new one*
{: .prompt-warning }

We should now see pi hole statistics

## Widgets

Widgets are standalone items like the resource and search at the top
Widgets are standalone items like the resource and search at the top.

If you want to edit these items
If you want to edit these items:

```bash
nano config/widgets.yaml
Expand Down

0 comments on commit 37fc32d

Please sign in to comment.