Skip to content

Conversation

@feat7
Copy link
Owner

@feat7 feat7 commented Dec 25, 2025

Summary

Fixes the POSTGRES_PASSWORD variable not being loaded when running ingestkit server start.

Problem

Docker Compose by default looks for .env in the same directory as the compose file. Since the compose file is at .ingestkit/docker-compose.yaml, it looks for .ingestkit/.env but init --server creates .env in the project root.

Solution

Add --env-file .env flag to docker compose commands so it explicitly loads the .env file from the project root.

Error Before Fix

WARN[0000] The "POSTGRES_PASSWORD" variable is not set. Defaulting to a blank string.
dependency failed to start: container ingestkit-postgres is unhealthy

Test Plan

  • Run ingestkit init --server in a fresh directory
  • Run ingestkit server start - should work without POSTGRES_PASSWORD warning

Docker Compose looks for .env in the compose file directory (.ingestkit/)
but init creates .env in project root. Add --env-file .env flag to ensure
the environment variables are loaded correctly.

Fixes: POSTGRES_PASSWORD not set warning and postgres unhealthy error
@feat7 feat7 merged commit c6952ca into main Dec 25, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants