Skip to content

fix(platform): load env vars in docker compose #10036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Bentlybro
Copy link
Member

Summary

  • DRY .env reference in Supabase docker-compose using YAML anchor

Testing

  • poetry run format
  • poetry run test (fails: FileNotFoundError: [Errno 2] No such file or directory: 'docker')
  • yarn format
  • yarn test (fails: Failed to fetch Poppins from Google Fonts)

@Bentlybro Bentlybro requested a review from a team as a code owner May 24, 2025 17:56
@Bentlybro Bentlybro requested review from Swiftyos and majdyz and removed request for a team May 24, 2025 17:56
@github-project-automation github-project-automation bot moved this to 🆕 Needs initial review in AutoGPT development kanban May 24, 2025
Copy link

netlify bot commented May 24, 2025

Deploy Preview for auto-gpt-docs-dev canceled.

Name Link
🔨 Latest commit 27f25b2
🔍 Latest deploy log https://app.netlify.com/projects/auto-gpt-docs-dev/deploys/683208552a2ac20008919019

@github-actions github-actions bot added the platform/backend AutoGPT Platform - Back end label May 24, 2025
Copy link

netlify bot commented May 24, 2025

Deploy Preview for auto-gpt-docs canceled.

Name Link
🔨 Latest commit 27f25b2
🔍 Latest deploy log https://app.netlify.com/projects/auto-gpt-docs/deploys/683208555574030008969835

Copy link

deepsource-io bot commented May 24, 2025

Here's the code health analysis summary for commits a51af36..27f25b2. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗
DeepSource Python LogoPython✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@Bentlybro Bentlybro requested a review from Copilot May 24, 2025 17:57
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to DRY the reference to the .env file in the Supabase Docker Compose configuration by introducing a YAML anchor.

  • Introduces a top-level YAML anchor (x-envfile) to avoid repeated .env file configuration across services.
  • Applies the merge key (<<: *env_file) to multiple service definitions to include the shared env_file configuration.

Copy link
Contributor

@majdyz majdyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is it used for? should we include backend/.env too ?

@github-project-automation github-project-automation bot moved this from 🆕 Needs initial review to 👍🏼 Mergeable in AutoGPT development kanban May 26, 2025
@Bentlybro
Copy link
Member Author

@majdyz this was an attempt to make it so docker reads and uses the proper .env files, i asked codex to help fix it, im going to test it and see if it works + yeah i can make it use backend/.env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codex platform/backend AutoGPT Platform - Back end size/m
Projects
Status: 👍🏼 Mergeable
Development

Successfully merging this pull request may close these issues.

2 participants