mirror of
https://github.com/tiennm99/coolify.git
synced 2026-05-13 12:58:05 +00:00
fix: update service creation logic to only connect pgAdmin to Docker network
This commit is contained in:
@@ -351,7 +351,7 @@ class ServicesController extends Controller
|
|||||||
'destination_id' => $destination->id,
|
'destination_id' => $destination->id,
|
||||||
'destination_type' => $destination->getMorphClass(),
|
'destination_type' => $destination->getMorphClass(),
|
||||||
];
|
];
|
||||||
if ($oneClickServiceName === 'cloudflared') {
|
if ($oneClickServiceName === 'pgadmin') {
|
||||||
data_set($servicePayload, 'connect_to_docker_network', true);
|
data_set($servicePayload, 'connect_to_docker_network', true);
|
||||||
}
|
}
|
||||||
$service = Service::create($servicePayload);
|
$service = Service::create($servicePayload);
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class Create extends Component
|
|||||||
'destination_id' => $destination->id,
|
'destination_id' => $destination->id,
|
||||||
'destination_type' => $destination->getMorphClass(),
|
'destination_type' => $destination->getMorphClass(),
|
||||||
];
|
];
|
||||||
if ($oneClickServiceName === 'cloudflared' || $oneClickServiceName === 'pgadmin') {
|
if ($oneClickServiceName === 'pgadmin') {
|
||||||
data_set($service_payload, 'connect_to_docker_network', true);
|
data_set($service_payload, 'connect_to_docker_network', true);
|
||||||
}
|
}
|
||||||
$service = Service::create($service_payload);
|
$service = Service::create($service_payload);
|
||||||
|
|||||||
Reference in New Issue
Block a user