1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

Add Config Option For Disabling Built In MSSQL Container

This commit is contained in:
Justin Baur 2024-10-25 09:26:31 -04:00
parent 724f2ee5e5
commit 6802a01b32
No known key found for this signature in database
3 changed files with 7 additions and 0 deletions

View File

@ -97,6 +97,9 @@ public class Configuration
[Description("Enable SCIM")]
public bool EnableScim { get; set; } = false;
[Description("Disable Built-In MSSQL Container Generation")]
public bool DisableBuiltInMsSql { get; set; }
[YamlIgnore]
public string Domain
{

View File

@ -42,6 +42,7 @@ public class DockerComposeBuilder
{
public TemplateModel(Context context)
{
DisableBuiltInMsSql = context.Config.DisableBuiltInMsSql;
MssqlDataDockerVolume = context.Config.DatabaseDockerVolume;
EnableKeyConnector = context.Config.EnableKeyConnector;
EnableScim = context.Config.EnableScim;
@ -61,6 +62,7 @@ public class DockerComposeBuilder
}
}
public bool DisableBuiltInMsSql { get; set; }
public bool MssqlDataDockerVolume { get; set; }
public bool EnableKeyConnector { get; set; }
public bool EnableScim { get; set; }

View File

@ -14,6 +14,7 @@
#########################################################################
services:
{{#if DisableBuiltInMsSql}}
mssql:
image: bitwarden/mssql:{{{CoreVersion}}}
container_name: bitwarden-mssql
@ -31,6 +32,7 @@ services:
- mssql.env
- ../env/uid.env
- ../env/mssql.override.env
{{/if}}
web:
image: bitwarden/web:{{{WebVersion}}}