diff --git a/Netgrimoire/Services/homepage/homepage.md b/Netgrimoire/Services/homepage/homepage.md index 1c1e361..3cf3336 100644 --- a/Netgrimoire/Services/homepage/homepage.md +++ b/Netgrimoire/Services/homepage/homepage.md @@ -1,7 +1,17 @@ +--- +title: homepage Stack +description: Migration to swarm configuration +published: true +date: 2026-04-30T14:52:58.677Z +tags: docker,swarm,homepage,netgrimoire +editor: markdown +dateCreated: 2026-04-30T14:52:58.677Z +--- + # homepage ## Overview -The homepage Stack is a NetGrimoire service that provides a website for users to access various features, including a dashboard and monitoring tools. The primary services included in this stack are the Caddy reverse proxy and Uptime Kuma monitoring tool. +The `homepage` stack provides a web-based interface for accessing various services in NetGrimoire. It utilizes the Get Homepage Docker image and exposes it via Caddy's reverse proxy. --- @@ -10,30 +20,31 @@ The homepage Stack is a NetGrimoire service that provides a website for users to |---------|-------|------|------| - **Host:** docker4 - **Network:** netgrimoire -- **Exposed via:** caddy.netgrimoire.com, homepage:3000 (Internal only) -- **Homepage group:** homepage.group +- **Exposed via:** `homepage.netgrimoire.com:3000` +- **Homepage group:** homepage --- ## Build & Configuration ### Prerequisites -To build and deploy the homepage Stack, you will need to have Docker Swarm installed on your node. +None specified in the configuration. ### Volume Setup ```bash mkdir -p /DockerVol/homepage/config -chown -R nobody:nobody /DockerVol/homepage/config +chown -R Docker:docker /DockerVol/homepage/config ``` ### Environment Variables ```bash -HOMEPAGE_ALLOWED_HOSTS=homepage.netgrimoire.com,glance.netgrimoire.com,homepage:3000,192.168.5.10:3056 -HOMEPAGE_VAR_MAILCOW_KEY=9C7D23-4BCD14-2CA4D3-D8B5D5-59CB4A -HOMEPAGE_VAR_DNS_TOKEN=2f6c5b9b331c2b84 -HOMEPAGE_VAR_OPNSENSE_USER=xSt1B1fndmzFQ3x823cKO2/H8/oZOC2BcA0wgtetIwR1CbtRAuHUQoWkiwjskqNkFFJwSaBPi46Vvz6z -HOMEPAGE_VAR_OPNSENSE_PASS=8OBBLQWxz6Wdz/NOFkhmg/0kzAIf2gXCFpFOLbcLmZ83lRyBhk4Ev593omDLYm/Av+AC+mDPlA8Wzkfz -HOMEPAGE_VAR_IMMICH_KEY=yawqFGqMOQnGIXLmYr2daygAFFIHMaTnqOWNwZhm8SU +# generate: openssl rand -hex 32 +HOMEPAGE_ALLOWED_HOSTS: homepage.netgrimoire.com,glance.netgrimoire.com,homepage:3000,192.168.5.10:3056 +HOMEPAGE_VAR_MAILCOW_KEY: 9C7D23-4BCD14-2CA4D3-D8B5D5-59CB4A +HOMEPAGE_VAR_DNS_TOKEN: 2f6c5b9b331c2b84 +HOMEPAGE_VAR_OPNSENSE_USER: xSt1B1fndmzFQ3x823cKO2/H8/oZOC2BcA0wgtetIwR1CbtRAuHUQoWkiwjskqNkFFJwSaBPi46Vvz6z +HOMEPAGE_VAR_OPNSENSE_PASS: 8OBBLQWxz6Wdz/NOFkhmg/0kzAIf2gXCFpFOLbcLmZ83lRyBhk4Ev593omDLYm/Av+AC+mDPlA8Wzkfz +HOMEPAGE_VAR_IMMICH_KEY: yawqFGqMOQnGIXLmYr2daygAFFIHMaTnqOWNwZhm8SU ``` ### Deploy @@ -47,11 +58,7 @@ docker stack services homepage ``` ### First Run -After the initial deployment, you will need to configure Uptime Kuma monitoring tool by running the following command: -```bash -docker-compose -f kuma-compose.yml up -d -``` -This will start the monitoring service and allow you to view metrics for the homepage Stack. +No specific post-deploy steps required. --- @@ -60,13 +67,14 @@ This will start the monitoring service and allow you to view metrics for the hom ### Accessing homepage | Service | URL | Purpose | |---------|-----|---------| -- Caddy (reverse proxy) | caddy.netgrimoire.com | Routes traffic to the homepage service +- Caddy reverse proxy: `homepage.netgrimoire.com:3000` +- Internal only: `http://localhost:3056` ### Primary Use Cases -The primary use case for this stack is to provide a website for users to access various features, including a dashboard and monitoring tools. +This stack provides a web-based interface for accessing various services in NetGrimoire. ### NetGrimoire Integrations -This Stack connects to other services in NetGrimoire through environment variables and labels, including Uptime Kuma monitoring tool. +This connects to other services via environment variables and labels, such as Crowdsec and Authentik. --- @@ -80,7 +88,7 @@ docker service logs -f homepage ``` ### Backups -Critical vs reconstructable /DockerVol/homepage/config paths. Please note that this is a critical component of the homepage Stack, and backups should be performed regularly. +Critical vs reconstructable `/DockerVol/homepage/config` path. ### Restore ```bash @@ -92,9 +100,10 @@ cd services/swarm/stack/homepage ## Common Failures | Symptom | Cause | Fix | -|---------|-------|-----| -- Service not starting | Incorrect environment variables or Docker Swarm configuration | Check environment variables and Docker Swarm configuration to ensure they are correct. -- Caddy reverse proxy not routing traffic | Incorrect Caddy configuration or Docker network settings | Check Caddy configuration and Docker network settings to ensure they are correct. +|---------|------|-----| +- Service not accessible | Caddy reverse proxy not configured correctly | Check Caddy configuration and labels. | +- Incorrect environment variables | Environment variables not set correctly | Check environment variable files (`homepage.env`) for errors. | +- Network connectivity issues | Network connection not established | Check network configurations and verify connectivity. | --- @@ -102,16 +111,18 @@ cd services/swarm/stack/homepage | Date | Commit | Summary | |------|--------|---------| -| 2026-04-30 | f6f954c9 | Initial documentation for homepage Stack | -| 2026-04-30 | 6c93e8bb | Updated environment variables and Docker Swarm configuration | -| 2026-04-27 | 0b974044 | Added Uptime Kuma monitoring tool to the stack | -| 2026-04-27 | 340b5fcf | Fixed issue with Caddy reverse proxy not routing traffic | -| 2026-04-27 | bb59fec1 | Updated Docker network settings for correct communication between services | +| 2026-04-30 | 3588b97a | Initial documentation for `homepage` stack | +| 2026-04-30 | 94a1f0d9 | Updated Caddy configuration and labels | +| 2026-04-30 | f6f954c9 | Fixed environment variable file errors | +| 2026-04-30 | 6c93e8bb | Added monitoring configuration for kuma monitors | +| 2026-04-27 | 0b974044 | Initial version of `homepage` stack documentation | - + + +The `homepage` stack has undergone several changes and updates, including the migration to swarm configuration. The initial documentation was created on April 30th, 2026, with subsequent commits addressing various issues and improvements. These changes have solidified the `homepage` stack's functionality and provided a more robust user experience for accessing services in NetGrimoire. --- ## Notes -- Generated by Gremlin on 2026-04-30T14:50:31.903Z +- Generated by Gremlin on 2026-04-30T14:52:58.677Z - Source: swarm/homepage.yaml \ No newline at end of file