fix: pass mongo env to dashboard cdc worker
This commit is contained in:
parent
6dff58f16f
commit
1aa3365ecb
@ -358,7 +358,7 @@ def build_dashboard_cdc_service_definition(host_name: str) -> dict[str, Any]:
|
|||||||
"network_mode": "host",
|
"network_mode": "host",
|
||||||
"restart": "unless-stopped",
|
"restart": "unless-stopped",
|
||||||
"stop_signal": "SIGTERM",
|
"stop_signal": "SIGTERM",
|
||||||
"env_file": ["./dashboard-cdc-worker.env"],
|
"env_file": ["./service.env", "./dashboard-cdc-worker.env"],
|
||||||
"pull_policy": "always",
|
"pull_policy": "always",
|
||||||
"working_dir": "/application",
|
"working_dir": "/application",
|
||||||
"entrypoint": [],
|
"entrypoint": [],
|
||||||
|
|||||||
@ -1411,6 +1411,7 @@ def render_dashboard_cdc_env() -> str:
|
|||||||
"DASHBOARD_STAT_TIMEZONES=Asia/Riyadh",
|
"DASHBOARD_STAT_TIMEZONES=Asia/Riyadh",
|
||||||
"DASHBOARD_STORAGE_TIMEZONE=Asia/Riyadh",
|
"DASHBOARD_STORAGE_TIMEZONE=Asia/Riyadh",
|
||||||
"REDIS_ENABLED=false",
|
"REDIS_ENABLED=false",
|
||||||
|
"MONGO_ENABLED=true",
|
||||||
"HEALTH_ADDR=:2910",
|
"HEALTH_ADDR=:2910",
|
||||||
"",
|
"",
|
||||||
]
|
]
|
||||||
@ -1437,7 +1438,7 @@ def ensure_dashboard_cdc_compose_service(host_name: str) -> dict[str, Any] | Non
|
|||||||
"network_mode": "host",
|
"network_mode": "host",
|
||||||
"restart": "unless-stopped",
|
"restart": "unless-stopped",
|
||||||
"stop_signal": "SIGTERM",
|
"stop_signal": "SIGTERM",
|
||||||
"env_file": ["./dashboard-cdc-worker.env"],
|
"env_file": ["./service.env", "./dashboard-cdc-worker.env"],
|
||||||
"pull_policy": "always",
|
"pull_policy": "always",
|
||||||
"working_dir": "/application",
|
"working_dir": "/application",
|
||||||
"entrypoint": [],
|
"entrypoint": [],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user