chore: add config-overrides.json to ignore files and docker volume

- Add config-overrides.json to .gitignore (user-specific runtime config)
- Add config-overrides.json to .dockerignore (not needed in image)
- Mount config-overrides.json as volume in docker-compose.yml

This enables persistent configuration overrides in containerized
deployments without rebuilding the image.
This commit is contained in:
jeffusion
2026-03-03 16:33:34 +08:00
parent 3cb53db8f0
commit 99bf4aff5e
3 changed files with 4 additions and 0 deletions

View File

@@ -7,3 +7,4 @@ frontend/node_modules/
# 忽略 kubernetes.yaml
kubernetes.yaml
config-overrides.json

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@ node_modules/
dist/
.env
kubernetes.yaml
config-overrides.json

View File

@@ -10,6 +10,8 @@ services:
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./config-overrides.json:/app/config-overrides.json
env_file:
- .env
healthcheck: