mirror of
https://github.com/bitwarden/server
synced 2025-12-06 00:03:34 +00:00
feat(self-host): [PM-14188] Add option to disable built-in MSSQL container
* Add Config Option For Disabling Built In MSSQL Container
* fix: flip bool condition and make it nullable
* fake commit to kick off an ephemeral environment
* Revert "fake commit to kick off an ephemeral environment"
This reverts commit 818f65f4d2.
* Changed the new setting to not be nullable.
---------
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
Co-authored-by: Todd Martin <tmartin@bitwarden.com>
This commit is contained in:
@@ -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("Enable Built-In MSSQL Container Generation")]
|
||||||
|
public bool EnableBuiltInMsSql { get; set; } = true;
|
||||||
|
|
||||||
[YamlIgnore]
|
[YamlIgnore]
|
||||||
public string Domain
|
public string Domain
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ public class DockerComposeBuilder
|
|||||||
{
|
{
|
||||||
public TemplateModel(Context context)
|
public TemplateModel(Context context)
|
||||||
{
|
{
|
||||||
|
EnableBuiltInMsSql = context.Config.EnableBuiltInMsSql;
|
||||||
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 EnableBuiltInMsSql { 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 EnableBuiltInMsSql}}
|
||||||
mssql:
|
mssql:
|
||||||
image: ghcr.io/bitwarden/mssql:{{{CoreVersion}}}
|
image: ghcr.io/bitwarden/mssql:{{{CoreVersion}}}
|
||||||
container_name: bitwarden-mssql
|
container_name: bitwarden-mssql
|
||||||
@@ -32,6 +33,7 @@ services:
|
|||||||
- ../env/uid.env
|
- ../env/uid.env
|
||||||
- ../env/mssql.override.env
|
- ../env/mssql.override.env
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
web:
|
web:
|
||||||
image: ghcr.io/bitwarden/web:{{{WebVersion}}}
|
image: ghcr.io/bitwarden/web:{{{WebVersion}}}
|
||||||
container_name: bitwarden-web
|
container_name: bitwarden-web
|
||||||
@@ -106,8 +108,10 @@ services:
|
|||||||
image: ghcr.io/bitwarden/admin:{{{CoreVersion}}}
|
image: ghcr.io/bitwarden/admin:{{{CoreVersion}}}
|
||||||
container_name: bitwarden-admin
|
container_name: bitwarden-admin
|
||||||
restart: always
|
restart: always
|
||||||
|
{{#if EnableBuiltInMsSql}}
|
||||||
depends_on:
|
depends_on:
|
||||||
- mssql
|
- mssql
|
||||||
|
{{/if}}
|
||||||
volumes:
|
volumes:
|
||||||
- ../core:/etc/bitwarden/core
|
- ../core:/etc/bitwarden/core
|
||||||
- ../ca-certificates:/etc/bitwarden/ca-certificates
|
- ../ca-certificates:/etc/bitwarden/ca-certificates
|
||||||
|
|||||||
Reference in New Issue
Block a user