[PR #2498] feat: update svc-web run script and Dockerfile to set explicit HOSTNAME #2136

Open
opened 2026-03-02 12:00:42 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/2498
Author: @savely-krasovsky
Created: 2/21/2026
Status: 🔄 Open

Base: mainHead: main


📝 Commits (3)

  • 76b9325 feat: update svc-web run script and Dockerfile to set explicit HOSTNAME environment variable
  • 9df11cd feat: replace NEXT_BIND_ADDR with WEB_HOST in svc-web and Dockerfile, mention it in docs
  • 80d7afe fix: set default fallback for WEB_HOST and fix minor typo in docs

📊 Changes

3 files changed (+7 additions, -2 deletions)

View changed files

📝 docker/Dockerfile (+1 -1)
📝 docker/root/etc/s6-overlay/s6-rc.d/svc-web/run (+4 -0)
📝 docs/docs/03-configuration/01-environment-variables.md (+2 -1)

📄 Description

Currently HOSTNAME is overridden by the s6-overlay system, and the default Dockerfile value has no effect. By default, s6-overlay sets HOSTNAME equal to your container name, which you can see in the logs, for example:

s6-rc: info: service legacy-services successfully started
   ▲ Next.js 15.3.8
   - Local:        http://karakeep:3000
   - Network:      http://karakeep:3000

karakeep in that case will be resolved by Docker/Podman DNS to an address like 10.88.0.11, and Karakeep will listen only there. This PR allows overriding HOSTNAME right before the app launch.

Closes #2404


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/karakeep-app/karakeep/pull/2498 **Author:** [@savely-krasovsky](https://github.com/savely-krasovsky) **Created:** 2/21/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`76b9325`](https://github.com/karakeep-app/karakeep/commit/76b9325a0358da2d9aed3c38911cc32d8dc036db) feat: update svc-web run script and Dockerfile to set explicit HOSTNAME environment variable - [`9df11cd`](https://github.com/karakeep-app/karakeep/commit/9df11cd84b6d347d5c30645c982e80cedec04ecd) feat: replace NEXT_BIND_ADDR with WEB_HOST in svc-web and Dockerfile, mention it in docs - [`80d7afe`](https://github.com/karakeep-app/karakeep/commit/80d7afeae4fd43a1f52b551146d4f9a5e648e370) fix: set default fallback for WEB_HOST and fix minor typo in docs ### 📊 Changes **3 files changed** (+7 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docker/Dockerfile` (+1 -1) 📝 `docker/root/etc/s6-overlay/s6-rc.d/svc-web/run` (+4 -0) 📝 `docs/docs/03-configuration/01-environment-variables.md` (+2 -1) </details> ### 📄 Description Currently `HOSTNAME` is overridden by the s6-overlay system, and the default Dockerfile value has no effect. By default, s6-overlay sets HOSTNAME equal to your container name, which you can see in the logs, for example: ``` s6-rc: info: service legacy-services successfully started ▲ Next.js 15.3.8 - Local: http://karakeep:3000 - Network: http://karakeep:3000 ``` `karakeep` in that case will be resolved by Docker/Podman DNS to an address like `10.88.0.11`, and Karakeep will listen only there. This PR allows overriding `HOSTNAME` right before the app launch. Closes #2404 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#2136
No description provided.