-
Notifications
You must be signed in to change notification settings - Fork 92
Bounty Submission: Universal One-Click Deployment (Docker + K8s + Tilt) for FinMind #146
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
aliraza556
wants to merge
6
commits into
rohitdash08:main
Choose a base branch
from
aliraza556:feat/universal-one-click-deployment
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5a86c33
feat: add universal one-click deployment system (Docker + K8s + Tilt)
aliraza556 9416979
fix: use JSON array syntax for backend command in docker-compose.prod…
aliraza556 b4b8220
chore: use free tier plans in render.yaml for demo deployment
aliraza556 249ebe5
fix: remove invalid redis top-level key from render.yaml
aliraza556 71da911
Merge remote-tracking branch 'origin' into feat/universal-one-click-d…
aliraza556 91cc678
fix: complete end-to-end deployment for all platforms
aliraza556 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| spec: | ||
| name: finmind | ||
| region: nyc | ||
| features: | ||
| - buildpack-stack=ubuntu-22 | ||
|
|
||
| databases: | ||
| - engine: PG | ||
| name: finmind-db | ||
| num_nodes: 1 | ||
| size: db-s-dev-database | ||
| version: "16" | ||
| - engine: REDIS | ||
| name: finmind-redis | ||
| num_nodes: 1 | ||
| size: db-s-dev-database | ||
| version: "7" | ||
|
|
||
| services: | ||
| # ── Backend API ── | ||
| - name: finmind-backend | ||
| dockerfile_path: packages/backend/Dockerfile | ||
| source_dir: / | ||
| http_port: 8000 | ||
| instance_count: 1 | ||
| instance_size_slug: basic-xxs | ||
| run_command: >- | ||
| sh -c "python -m flask --app wsgi:app init-db && | ||
| gunicorn -w 2 -k gthread --timeout 120 -b 0.0.0.0:8000 wsgi:app" | ||
| health_check: | ||
| http_path: /health | ||
| initial_delay_seconds: 30 | ||
| period_seconds: 15 | ||
| timeout_seconds: 5 | ||
| success_threshold: 1 | ||
| failure_threshold: 3 | ||
| envs: | ||
| - key: DATABASE_URL | ||
| scope: RUN_TIME | ||
| value: ${finmind-db.DATABASE_URL} | ||
| - key: REDIS_URL | ||
aliraza556 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| scope: RUN_TIME | ||
| value: ${finmind-redis.DATABASE_URL} | ||
| - key: JWT_SECRET | ||
| scope: RUN_TIME | ||
| type: SECRET | ||
| value: "CHANGE_ME_IN_PRODUCTION" | ||
| - key: LOG_LEVEL | ||
| scope: RUN_TIME | ||
| value: INFO | ||
|
|
||
| # ── Frontend Static Site ── | ||
| - name: finmind-frontend | ||
| dockerfile_path: app/Dockerfile | ||
| source_dir: / | ||
| http_port: 80 | ||
| instance_count: 1 | ||
| instance_size_slug: basic-xxs | ||
| build_command: "" | ||
| envs: | ||
| - key: VITE_API_URL | ||
| scope: BUILD_TIME | ||
| value: ${finmind-backend.PUBLIC_URL} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.