Skip to content
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

Clean up Docker Compose with Anchors #1272

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

JamesonRGrieve
Copy link
Collaborator

@JamesonRGrieve JamesonRGrieve commented Oct 21, 2024

Use anchors in order to not repeat ~30 variables 3 times per file.
This pull request includes significant changes to the docker-compose configuration files to improve environment variable management and streamline service definitions. The most important changes involve the introduction of shared environment variable groups and the reorganization of service-specific environment variables.

Improvements to environment variable management:

  • Introduced common environment variable groups x-common-env and x-oauth-env to define shared environment variables, reducing redundancy across services (docker-compose-dev.yml, docker-compose-nostreamlit-dev.yml, docker-compose-nostreamlit.yml). [1] [2] [3]

Reorganization of service-specific environment variables:

  • Updated the agixt service to use the new environment variable groups and added missing Stripe-related environment variables (docker-compose-dev.yml, docker-compose-nostreamlit-dev.yml, docker-compose-nostreamlit.yml). [1] [2] [3]
  • Updated the streamlit and agixtinteractive services to use the new environment variable groups and removed redundant environment variables (docker-compose-dev.yml, docker-compose-nostreamlit-dev.yml, docker-compose-nostreamlit.yml). [1] [2] [3]

These changes aim to simplify the configuration files, making them easier to maintain and reducing the risk of errors due to duplicated environment variables.

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