Skip to content

feat: DigitalOcean deployment support with .do config and Deploy button#49

Merged
fernandez14 merged 4 commits intodevelopfrom
open-swe/963aa166-a9a3-4c9f-afd8-7169b59704b3
Aug 8, 2025
Merged

feat: DigitalOcean deployment support with .do config and Deploy button#49
fernandez14 merged 4 commits intodevelopfrom
open-swe/963aa166-a9a3-4c9f-afd8-7169b59704b3

Conversation

@open-swe
Copy link
Contributor

@open-swe open-swe bot commented Aug 8, 2025

Fixes #48

What this PR adds:

  • New .do directory at the repo root for DigitalOcean App Platform configuration.
  • .do/app.yaml for the Go service built from the existing Dockerfile, including environment variable placeholders marked as SECRET for sensitive values (MongoDB, Redis, JWT, S3/MinIO, OAuth credentials, and SMTP).
  • .do/deploy.template.yaml enabling the Deploy to DigitalOcean button, referencing the tryanzu/anzu GitHub repository, building from Dockerfile, and configuring environment variables with DO connections to MongoDB and Redis.
  • README.md updated with a Deploy to DigitalOcean button and a deployment guide detailing required and optional environment variables for App Platform configuration.

How to deploy:

  • Click the DigitalOcean Deploy button to start the deployment flow.
  • In DigitalOcean App Platform, connect to GitHub (tryanzu/anzu) and set up the app using the provided templates.
  • In App Platform settings, configure environment variables as described in the deployment guide, marking sensitive values as SECRET.

Environment variables (examples and placeholders):

  • MongoDB/MongoDB URI and related connection details
  • Redis connection details
  • JWT_SECRET (SECRET)
  • S3/MinIO credentials (S3_ENDPOINT, S3_KEY, S3_SECRET, S3_BUCKET) marked as SECRET
  • OAuth credentials (e.g., GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET) marked as SECRET
  • SMTP settings (SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD) with SMTP_PASSWORD marked as SECRET

Notes:

  • Adjust variable names to your actual deployment needs and ensure DO services are accessible from App Platform.
  • This PR provides the scaffolding; you will need to fill in the placeholder SECRET values after deployment.

@open-swe open-swe bot added the open-swe label Aug 8, 2025
@open-swe open-swe bot marked this pull request as ready for review August 8, 2025 00:54
@open-swe open-swe bot changed the title [WIP]: Add DigitalOcean Deploy Button and Deployment Support feat: DigitalOcean deployment support with .do config and Deploy button Aug 8, 2025
@fernandez14 fernandez14 merged commit 998cc3c into develop Aug 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Deploy to DigitalOcean button and DO deployment support (.do folder); update README.md

2 participants