fix(proxy): mounting error for nginx.conf in dev (#8662)
This commit is contained in:
commit
65d61a4af3
1 changed files with 3 additions and 2 deletions
|
|
@ -51,8 +51,9 @@ public function handle(StandaloneRedis|StandalonePostgresql|StandaloneMongodb|St
|
||||||
}
|
}
|
||||||
|
|
||||||
$configuration_dir = database_proxy_dir($database->uuid);
|
$configuration_dir = database_proxy_dir($database->uuid);
|
||||||
|
$host_configuration_dir = $configuration_dir;
|
||||||
if (isDev()) {
|
if (isDev()) {
|
||||||
$configuration_dir = '/var/lib/docker/volumes/coolify_dev_coolify_data/_data/databases/'.$database->uuid.'/proxy';
|
$host_configuration_dir = '/var/lib/docker/volumes/coolify_dev_coolify_data/_data/databases/'.$database->uuid.'/proxy';
|
||||||
}
|
}
|
||||||
$nginxconf = <<<EOF
|
$nginxconf = <<<EOF
|
||||||
user nginx;
|
user nginx;
|
||||||
|
|
@ -85,7 +86,7 @@ public function handle(StandaloneRedis|StandalonePostgresql|StandaloneMongodb|St
|
||||||
'volumes' => [
|
'volumes' => [
|
||||||
[
|
[
|
||||||
'type' => 'bind',
|
'type' => 'bind',
|
||||||
'source' => "$configuration_dir/nginx.conf",
|
'source' => "$host_configuration_dir/nginx.conf",
|
||||||
'target' => '/etc/nginx/nginx.conf',
|
'target' => '/etc/nginx/nginx.conf',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue