Refactor docker-compose files to remove version numbers

This commit is contained in:
Andras Bacsai
2024-05-08 09:23:36 +02:00
parent 3eb4aed867
commit fb80318553
18 changed files with 5 additions and 25 deletions

View File

@@ -33,7 +33,6 @@ class StartClickhouse
$environment_variables = $this->generate_environment_variables();
$docker_compose = [
'version' => '3.8',
'services' => [
$container_name => [
'image' => $this->database->image,

View File

@@ -107,7 +107,6 @@ class StartDatabaseProxy
COPY nginx.conf /etc/nginx/nginx.conf
EOF;
$docker_compose = [
'version' => '3.8',
'services' => [
$proxyContainerName => [
'build' => [

View File

@@ -36,7 +36,6 @@ class StartDragonfly
$environment_variables = $this->generate_environment_variables();
$docker_compose = [
'version' => '3.8',
'services' => [
$container_name => [
'image' => $this->database->image,

View File

@@ -37,7 +37,6 @@ class StartKeydb
$this->add_custom_keydb();
$docker_compose = [
'version' => '3.8',
'services' => [
$container_name => [
'image' => $this->database->image,

View File

@@ -32,7 +32,6 @@ class StartMariadb
$environment_variables = $this->generate_environment_variables();
$this->add_custom_mysql();
$docker_compose = [
'version' => '3.8',
'services' => [
$container_name => [
'image' => $this->database->image,

View File

@@ -35,7 +35,6 @@ class StartMongodb
$this->add_custom_mongo_conf();
$docker_compose = [
'version' => '3.8',
'services' => [
$container_name => [
'image' => $this->database->image,

View File

@@ -32,7 +32,6 @@ class StartMysql
$environment_variables = $this->generate_environment_variables();
$this->add_custom_mysql();
$docker_compose = [
'version' => '3.8',
'services' => [
$container_name => [
'image' => $this->database->image,

View File

@@ -35,7 +35,6 @@ class StartPostgresql
$this->add_custom_conf();
$docker_compose = [
'version' => '3.8',
'services' => [
$container_name => [
'image' => $this->database->image,

View File

@@ -37,7 +37,6 @@ class StartRedis
$this->add_custom_redis();
$docker_compose = [
'version' => '3.8',
'services' => [
$container_name => [
'image' => $this->database->image,

View File

@@ -1289,7 +1289,6 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
$this->application->parseHealthcheckFromDockerfile($dockerfile);
}
$docker_compose = [
'version' => '3.8',
'services' => [
$this->container_name => [
'image' => $this->production_image_name,

View File

@@ -45,7 +45,7 @@ class Heading extends Component
public function check_status($showNotification = false)
{
GetContainersStatus::run($this->application->destination->server);
GetContainersStatus::run($this->database->destination->server);
// dispatch_sync(new ContainerStatusJob($this->database->destination->server));
$this->database->refresh();
if ($showNotification) $this->dispatch('success', 'Database status updated.');