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

Update run-with-docker-compose.sh #1386

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Conversation

AranavMahalpure
Copy link
Contributor

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
  • Feature
  • Why was this change needed? (You can also link to an open issue here)
  • This change adds a conditional setup in the Docker Compose configuration to support both Azure-based and default deployments. It allows seamless switching between configurations based on environment variables, improving deployment flexibility and compatibility with Azure services.
  • Other information:
  • The script checks for Azure-specific environment variables to decide which Docker Compose file to use (docker-compose-azure.yaml or docker-compose.yaml). This enhancement streamlines setup by automating configuration selection based on the environment.

Source Environment Variables:

source .env loads environment variables from the .env file, making them available within the script.
Conditional Check for Azure Configuration:

The if condition checks if all required Azure variables are set (non-empty).
If they are, it runs Docker Compose with docker-compose-azure.yaml.
Otherwise, it defaults to the standard configuration with docker-compose.yaml.
Build and Run Services:

Depending on the condition, the script either builds and runs services with Azure settings (docker-compose-azure.yaml) or the standard configuration (docker-compose.yaml).
Copy link

vercel bot commented Oct 27, 2024

@AranavMahalpure is attempting to deploy a commit to the Arc53 Team on Vercel.

A member of the Team first needs to authorize it.

@dartpain dartpain merged commit 45e14bc into arc53:main Oct 31, 2024
2 of 3 checks passed
@dartpain
Copy link
Contributor

dartpain commented Nov 8, 2024

@holopin-bot @AranavMahalpure Thank you!

Copy link

holopin-bot bot commented Nov 8, 2024

Congratulations @AranavMahalpure, the maintainer of this repository has issued you a badge! Here it is: https://holopin.io/claim/cm38qnckr84230cl8zl5d3c5p

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account.
Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!

@AranavMahalpure
Copy link
Contributor Author

You're welcome, @dartpain! 😊 I’m glad to have contributed. Looking forward to collaborating more in the future! 🚀 #Hacktoberfest. and Thank you so much for the badge! https://holopin.io/claim/cm38qnckr84230cl8zl5d3c5p 😊 It's an honor to contribute to this project.
give a like to my Post at linkedin https://www.linkedin.com/posts/aranav-mahalpure_hacktoberfest2024-devfesai-opensource-activity-7258485715271864321-E2-n?utm_source=share&utm_medium=member_desktop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants