Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ComposeVersion from template #3972

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 0 additions & 4 deletions util/Setup/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ public class Configuration
"Learn more: https://docs.docker.com/compose/compose-file/#ports")]
public string HttpsPort { get; set; } = "443";

[Description("Docker compose file version. Leave empty for default.\n" +
"Learn more: https://docs.docker.com/compose/compose-file/compose-versioning/")]
public string ComposeVersion { get; set; }

[Description("Configure Nginx for Captcha.")]
public bool Captcha { get; set; } = false;

Expand Down
5 changes: 0 additions & 5 deletions util/Setup/DockerComposeBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ public class TemplateModel
{
public TemplateModel(Context context)
{
if (!string.IsNullOrWhiteSpace(context.Config.ComposeVersion))
{
ComposeVersion = context.Config.ComposeVersion;
}
MssqlDataDockerVolume = context.Config.DatabaseDockerVolume;
EnableKeyConnector = context.Config.EnableKeyConnector;
EnableScim = context.Config.EnableScim;
Expand All @@ -65,7 +61,6 @@ public TemplateModel(Context context)
}
}

public string ComposeVersion { get; set; } = "3";
public bool MssqlDataDockerVolume { get; set; }
public bool EnableKeyConnector { get; set; }
public bool EnableScim { get; set; }
Expand Down
2 changes: 0 additions & 2 deletions util/Setup/Templates/DockerCompose.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
# ./bwdata/config.yml file for your installation. #
#########################################################################

version: '{{{ComposeVersion}}}'

services:
mssql:
image: bitwarden/mssql:{{{CoreVersion}}}
Expand Down