[PR #4299] [MERGED] Fix healthcheck when using .env file #7048

Closed
opened 2026-03-07 21:10:09 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/4299
Author: @BlackDex
Created: 1/31/2024
Status: Merged
Merged: 1/31/2024
Merged by: @dani-garcia

Base: mainHead: fix-healthcheck


📝 Commits (1)

  • d0bdd46 Fix healthcheck when using .env file

📊 Changes

1 file changed (+4 additions, -6 deletions)

View changed files

📝 docker/healthcheck.sh (+4 -6)

📄 Description

It seems Debian based images see the .env file in the pwd path, but sourcing it via . .env breaks. It does work if you provide the full path /.env. Changed the default to /.env.

Alpine does not have an issue with both ways.

Fixes #4295


🔄 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/dani-garcia/vaultwarden/pull/4299 **Author:** [@BlackDex](https://github.com/BlackDex) **Created:** 1/31/2024 **Status:** ✅ Merged **Merged:** 1/31/2024 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `fix-healthcheck` --- ### 📝 Commits (1) - [`d0bdd46`](https://github.com/dani-garcia/vaultwarden/commit/d0bdd4613a609d666f5c2813cf8e4e06070d58ba) Fix healthcheck when using .env file ### 📊 Changes **1 file changed** (+4 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `docker/healthcheck.sh` (+4 -6) </details> ### 📄 Description It seems Debian based images see the `.env` file in the `pwd` path, but sourcing it via `. .env` breaks. It does work if you provide the full path `/.env`. Changed the default to `/.env`. Alpine does not have an issue with both ways. Fixes #4295 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-07 21:10:09 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#7048