File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
services/director/src/simcore_service_director Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,8 @@ async def _create_docker_service_params(
178178 service_name = registry_proxy .get_service_last_names (service_key ) + "_" + node_uuid
179179 _logger .debug ("Converting labels to docker runtime parameters" )
180180 service_default_envs = {
181- "POSTGRES_ENDPOINT" : app_settings .DIRECTOR_POSTGRES .dsn ,
181+ # old services expect POSTGRES_ENDPOINT as hostname:port
182+ "POSTGRES_ENDPOINT" : f"{ app_settings .DIRECTOR_POSTGRES .POSTGRES_HOST } :{ app_settings .DIRECTOR_POSTGRES .POSTGRES_PORT } " ,
182183 "POSTGRES_USER" : app_settings .DIRECTOR_POSTGRES .POSTGRES_USER ,
183184 "POSTGRES_PASSWORD" : app_settings .DIRECTOR_POSTGRES .POSTGRES_PASSWORD .get_secret_value (),
184185 "POSTGRES_DB" : app_settings .DIRECTOR_POSTGRES .POSTGRES_DB ,
You can’t perform that action at this time.
0 commit comments