File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
services/director/src/simcore_service_director Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -180,10 +180,17 @@ async def _create_docker_service_params(
180180 )
181181 service_name = registry_proxy .get_service_last_names (service_key ) + "_" + node_uuid
182182 log .debug ("Converting labels to docker runtime parameters" )
183+ service_default_envs = {
184+ "POSTGRES_ENDPOINT" : app_settings .DIRECTOR_POSTGRES .dsn ,
185+ "POSTGRES_USER" : app_settings .DIRECTOR_POSTGRES .POSTGRES_USER ,
186+ "POSTGRES_PASSWORD" : app_settings .DIRECTOR_POSTGRES .POSTGRES_PASSWORD .get_secret_value (),
187+ "POSTGRES_DB" : app_settings .DIRECTOR_POSTGRES .POSTGRES_DB ,
188+ "STORAGE_ENDPOINT" : app_settings .STORAGE_ENDPOINT ,
189+ }
183190 container_spec = {
184191 "Image" : f"{ app_settings .DIRECTOR_REGISTRY .resolved_registry_url } /{ service_key } :{ service_tag } " ,
185192 "Env" : {
186- ** config . SERVICES_DEFAULT_ENVS ,
193+ ** service_default_envs ,
187194 "SIMCORE_USER_ID" : user_id ,
188195 "SIMCORE_NODE_UUID" : node_uuid ,
189196 "SIMCORE_PROJECT_ID" : project_id ,
You can’t perform that action at this time.
0 commit comments