feat: replace EC2 deploy with GCP Compute Engine - #19
Open
manNomi wants to merge 3 commits into
Open
Conversation
Moves production deployment from AWS EC2 to a GCP Compute Engine VM running the same Postgres+API Docker Compose stack. Caddy now terminates HTTPS for api.soundlog.shop directly on the VM instead of relying on the Vercel proxy trick EC2 needed for TLS. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
4 tasks
Contributor
Author
남은 할 일 (TODO)
검증 완료
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
soundlog-api, projectnomi-app-deploy-2026,asia-northeast3-a) running the same Postgres + API Docker Compose stack.caddycontainer that terminates HTTPS forapi.soundlog.shopdirectly on the VM with an auto-issued Let's Encrypt certificate, replacing the EC2-era Vercel-proxy-for-HTTPS setup..github/workflows/deploy-gcp.yml(SSH-based deploy, same shape as the old EC2 workflow) anddocs/gcp-deployment.md; removesdeploy-ec2.ymlanddocs/ec2-deployment.md.GCP_HOST,GCP_USER,GCP_SSH_PORT,GCP_SSH_KEY,GCP_APP_DIR,PRODUCTION_ENV) are already set on this repo, anddeploy-gcp.ymlhas already been run and verified successfully against the new VM (db + api + caddy containers healthy,/v1/healthOK,node scripts/check-public-api-contract.mjspassed).Manual step required (blocking public HTTPS)
Add this DNS record in Gabia DNS:
Aapi34.64.116.40https://api.soundlog.shopwill not work until this resolves — Caddy can't issue a cert without it. Everything else (internal health, contract check) is already verified working.Related
EXPO_PUBLIC_SOUNDLOG_API_BASE_URLtohttps://api.soundlog.shopand fixes the Vercel build's stale-origin guard, which hadapi.soundlog.shopdeny-listed from an earlier iteration)SOUNDLOG_API_ORIGINon thesound-log-appVercel project has already been updated tohttps://api.soundlog.shopfor Production/Preview — the next web deploy needs SoundLogApp#21 merged first (see that PR for why).Not done (needs a human)
TOUR_API_SERVICE_KEYships blank in the newPRODUCTION_ENVsecret — set the real data.go.kr key if that feature needs to work.Test plan
deploy-gcp.ymlrun manually from this branch, all steps greendocker compose pson the VM: db/api/caddy all healthynode scripts/check-public-api-contract.mjspassed inside the deployed containercurl https://api.soundlog.shop/v1/healthafter the Gabia DNS record is addedEC2_*/AWS_*GitHub secrets once this is merged and confirmed stable🤖 Generated with Claude Code