Repository navigation
Conversation
- docker-compose.yml 改為通用版:內建 MongoDB(profile local-db)、named volume、 埠對外、後端等 MongoDB 再啟動、前後端 healthcheck,clone 後一行即可跑 - 主機專屬設定(外部網路、/tank 照片目錄、映像 digest、autoheal 標籤、不開埠) 改放同目錄 docker-compose.override.yml,已加入 .gitignore,不進版控 - docker-compose.test.yml 補上等 MongoDB 與 healthcheck - CI:雙環境冒煙測試在執行時臨時產生覆蓋檔;新增 generic-quickstart job 驗證通用快速開始 - README/SETUP/DEPLOY_TWO_ENV 與 .env.example 同步更新 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011d6eyuitfsYRBCPNeXGa3c
This branch has not been deployed
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.
目標
換一個環境也能快速架設:
cp兩個範本 +docker compose up -d --build就能跑。NAS 專屬的設定不進 GitHub,改放該主機本機的docker-compose.override.yml。改動
docker-compose.yml(通用版):內建 MongoDB(local-dbprofile,沒設就不啟動)、named volume(資料、照片)、前端 8080/後端 5001 對外、後端等 MongoDB 再啟動、前後端 healthcheck。shared-db/edge、/tank照片目錄、映像 digest、autoheal標籤、不對外開埠,全部放docker-compose.override.yml;已加入.gitignore。Compose 會自動合併,NAS 的啟動指令不變。docker-compose.test.yml:補上等 MongoDB 與 healthcheck(仍是 NAS 專用,維持原樣接edge/shared-db)。generic-quickstartjob,在乾淨環境照快速開始步驟跑一次。.env.example改成通用範本。正式 checkout(
~/accounting-system-prod)要先建好本機docker-compose.override.yml,再git pull。否則通用版會少接外部網路、連不到現有 MongoDB。覆蓋檔內容由 NAS 維運端提供,不在 repo。這步沒做完之前不要合到 release。驗證
docker compose config:通用版有/無 profile 的服務清單正確;模擬 NAS 覆蓋檔合併後,與目前 NAS 正式版一致(無對外埠、/tank照片、三個網路、digest、autoheal)🤖 Generated with Claude Code
https://claude.ai/code/session_011d6eyuitfsYRBCPNeXGa3c