fix: service start + event

This commit is contained in:
Andras Bacsai 2023-12-08 15:12:08 +01:00
parent eccd41217f
commit 6882ce8d0f
3 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ public function handle(Service $service)
$commands[] = "echo 'Pulling images.'";
$commands[] = "docker compose pull";
$commands[] = "echo 'Starting containers.'";
$commands[] = "docker compose up --wait --remove-orphans --force-recreate --build";
$commands[] = "docker compose up -d --remove-orphans --force-recreate --build";
$commands[] = "docker network connect $service->uuid coolify-proxy >/dev/null 2>&1 || true";
$compose = data_get($service, 'docker_compose', []);
$serviceNames = data_get(Yaml::parse($compose), 'services', []);

View File

@ -65,6 +65,6 @@ public function stop(bool $forceCleanup = false)
} else {
$this->dispatch('success', 'Service stopped successfully.');
}
event(new ServiceStatusChanged(userId: auth()->user()->id));
event(new ServiceStatusChanged());
}
}

View File

@ -56,7 +56,7 @@ services:
ports:
- "${FORWARD_SOKETI_PORT:-6001}:6001"
environment:
SOKETI_DEBUG: "false"
SOKETI_DEBUG: "true"
SOKETI_DEFAULT_APP_ID: "${PUSHER_APP_ID:-coolify}"
SOKETI_DEFAULT_APP_KEY: "${PUSHER_APP_KEY:-coolify}"
SOKETI_DEFAULT_APP_SECRET: "${PUSHER_APP_SECRET:-coolify}"