mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2026-01-27 07:24:21 +01:00
Isolate postgres and enable mysql & sqlite through docker
This commit is contained in:
@@ -17,6 +17,12 @@ namespace DockerGenerator
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string SelectedDatabase
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string SelectedLN
|
||||
{
|
||||
get;
|
||||
@@ -39,6 +45,7 @@ namespace DockerGenerator
|
||||
continue;
|
||||
composition.SelectedCryptos.Add(selectedCrypto.ToLowerInvariant());
|
||||
}
|
||||
composition.SelectedDatabase = (Environment.GetEnvironmentVariable("BTCPAYGEN_DATABASE") ?? "postgtres").ToLowerInvariant();
|
||||
composition.SelectedProxy = (Environment.GetEnvironmentVariable("BTCPAYGEN_REVERSEPROXY") ?? "").ToLowerInvariant();
|
||||
composition.SelectedLN = (Environment.GetEnvironmentVariable("BTCPAYGEN_LIGHTNING") ?? "").ToLowerInvariant();
|
||||
composition.AdditionalFragments = (Environment.GetEnvironmentVariable("BTCPAYGEN_ADDITIONAL_FRAGMENTS") ?? "").ToLowerInvariant()
|
||||
|
||||
@@ -51,7 +51,9 @@ namespace DockerGenerator
|
||||
}
|
||||
fragments.Add("btcpayserver");
|
||||
fragments.Add("nbxplorer");
|
||||
fragments.Add("postgres");
|
||||
if(composition.SelectedDatabase != "sqlite"){
|
||||
fragments.Add(composition.SelectedDatabase);
|
||||
}
|
||||
foreach (var crypto in CryptoDefinition.GetDefinitions())
|
||||
{
|
||||
if (!composition.SelectedCryptos.Contains(crypto.Crypto))
|
||||
|
||||
Reference in New Issue
Block a user