Skip to content

Commit

Permalink
reverse proxy shared db
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-ivona committed Dec 15, 2023
1 parent 699c51d commit c4a24bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Recipes/Laravel/LaravelRecipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,12 @@ private function build_php(): Php
$php = app()->make(Php::class)
->set_environment('DOCK', 1)
->add_network($this->internal_network())
->depends_on('mysql')
->depends_on('redis');

if ($shared_db_network = env('MYSQL_SHARED_DB_NETWORK')) {
$php->add_network($shared_db_network);
}else{
$php->depends_on('mysql');
}

return $php;
Expand Down

0 comments on commit c4a24bd

Please sign in to comment.