mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
Add Config Option For Disabling Built In MSSQL Container
This commit is contained in:
parent
724f2ee5e5
commit
6802a01b32
@ -97,6 +97,9 @@ public class Configuration
|
|||||||
[Description("Enable SCIM")]
|
[Description("Enable SCIM")]
|
||||||
public bool EnableScim { get; set; } = false;
|
public bool EnableScim { get; set; } = false;
|
||||||
|
|
||||||
|
[Description("Disable Built-In MSSQL Container Generation")]
|
||||||
|
public bool DisableBuiltInMsSql { get; set; }
|
||||||
|
|
||||||
[YamlIgnore]
|
[YamlIgnore]
|
||||||
public string Domain
|
public string Domain
|
||||||
{
|
{
|
||||||
|
@ -42,6 +42,7 @@ public class DockerComposeBuilder
|
|||||||
{
|
{
|
||||||
public TemplateModel(Context context)
|
public TemplateModel(Context context)
|
||||||
{
|
{
|
||||||
|
DisableBuiltInMsSql = context.Config.DisableBuiltInMsSql;
|
||||||
MssqlDataDockerVolume = context.Config.DatabaseDockerVolume;
|
MssqlDataDockerVolume = context.Config.DatabaseDockerVolume;
|
||||||
EnableKeyConnector = context.Config.EnableKeyConnector;
|
EnableKeyConnector = context.Config.EnableKeyConnector;
|
||||||
EnableScim = context.Config.EnableScim;
|
EnableScim = context.Config.EnableScim;
|
||||||
@ -61,6 +62,7 @@ public class DockerComposeBuilder
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool DisableBuiltInMsSql { get; set; }
|
||||||
public bool MssqlDataDockerVolume { get; set; }
|
public bool MssqlDataDockerVolume { get; set; }
|
||||||
public bool EnableKeyConnector { get; set; }
|
public bool EnableKeyConnector { get; set; }
|
||||||
public bool EnableScim { get; set; }
|
public bool EnableScim { get; set; }
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
{{#if DisableBuiltInMsSql}}
|
||||||
mssql:
|
mssql:
|
||||||
image: bitwarden/mssql:{{{CoreVersion}}}
|
image: bitwarden/mssql:{{{CoreVersion}}}
|
||||||
container_name: bitwarden-mssql
|
container_name: bitwarden-mssql
|
||||||
@ -31,6 +32,7 @@ services:
|
|||||||
- mssql.env
|
- mssql.env
|
||||||
- ../env/uid.env
|
- ../env/uid.env
|
||||||
- ../env/mssql.override.env
|
- ../env/mssql.override.env
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: bitwarden/web:{{{WebVersion}}}
|
image: bitwarden/web:{{{WebVersion}}}
|
||||||
|
Loading…
Reference in New Issue
Block a user