1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

compose version config variable

This commit is contained in:
Kyle Spearrin
2018-08-30 23:32:18 -04:00
parent edac914ebd
commit 477d665104
4 changed files with 26 additions and 11 deletions

View File

@ -45,13 +45,24 @@ namespace Bit.Setup
{
public TemplateModel(Context context)
{
if(!string.IsNullOrWhiteSpace(context.Config.ComposeVersion))
{
ComposeVersion = context.Config.ComposeVersion;
}
MssqlDataDockerVolume = context.Config.DatabaseDockerVolume;
HttpPort = context.Config.HttpPort;
HttpsPort = context.Config.HttpsPort;
CoreVersion = context.CoreVersion;
WebVersion = context.WebVersion;
if(!string.IsNullOrWhiteSpace(context.CoreVersion))
{
CoreVersion = context.CoreVersion;
}
if(!string.IsNullOrWhiteSpace(context.WebVersion))
{
WebVersion = context.WebVersion;
}
}
public string ComposeVersion { get; set; } = "3";
public bool MssqlDataDockerVolume { get; set; }
public string HttpPort { get; set; }
public string HttpsPort { get; set; }