diff --git a/src/ServerManager.DiscordBot/ServerHostAdapters/DockerCompose/DockerComposeServerHostAdapter.cs b/src/ServerManager.DiscordBot/ServerHostAdapters/DockerCompose/DockerComposeServerHostAdapter.cs index 4b16854..8c83863 100644 --- a/src/ServerManager.DiscordBot/ServerHostAdapters/DockerCompose/DockerComposeServerHostAdapter.cs +++ b/src/ServerManager.DiscordBot/ServerHostAdapters/DockerCompose/DockerComposeServerHostAdapter.cs @@ -26,8 +26,8 @@ public override async Task GetServerStatusAsync(CancellationToken return status switch { "Up" => ServerStatus.Running, - "Exited" => ServerStatus.Stopped, - _ => ServerStatus.Unknown + "Created" => ServerStatus.Starting, + _ => ServerStatus.Stopped }; } @@ -81,7 +81,7 @@ private Process StartDockerComposeProcess(string arguments) StartInfo = new ProcessStartInfo { FileName = Options.DockerProcessFilePath, - Arguments = $"compose -f {Context.Properties.DockerComposeFilePath} {arguments}", + Arguments = $"compose --file {Context.Properties.DockerComposeFilePath} {arguments}", RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false,