mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2025-12-18 07:24:33 +01:00
Revert "Merge pull request #72 from Kukks/feature/mysql"
This reverts commita187899945, reversing changes made tod7241f0d0f.
This commit is contained in:
@@ -9,6 +9,7 @@ services:
|
||||
- "49392"
|
||||
environment:
|
||||
# BTCPay settings
|
||||
BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest}
|
||||
BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest}
|
||||
BTCPAY_BIND: 0.0.0.0:49392
|
||||
BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/
|
||||
@@ -18,6 +19,7 @@ services:
|
||||
BTCPAY_DEBUGLOG: btcpay.log
|
||||
links:
|
||||
- nbxplorer
|
||||
- postgres
|
||||
volumes:
|
||||
- "btcpay_datadir:/datadir"
|
||||
- "nbxplorer_datadir:/root/.nbxplorer"
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
mysql:
|
||||
restart: unless-stopped
|
||||
image: mysql:8.0
|
||||
volumes:
|
||||
- "mysql_datadir:/var/lib/mysql"
|
||||
environment:
|
||||
- MYSQL_ALLOW_EMPTY_PASSWORD="true"
|
||||
|
||||
btcpayserver:
|
||||
environment:
|
||||
BTCPAY_MYSQL: Server=mysql;Database=btcpayserver${NBITCOIN_NETWORK:-regtest};Uid=root;Pwd=;Port=3306;
|
||||
links:
|
||||
- mysql
|
||||
|
||||
volumes:
|
||||
mysql_datadir:
|
||||
@@ -6,11 +6,6 @@ services:
|
||||
image: postgres:9.6.5
|
||||
volumes:
|
||||
- "postgres_datadir:/var/lib/postgresql/data"
|
||||
btcpayserver:
|
||||
environment:
|
||||
BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest}
|
||||
links:
|
||||
- postgres
|
||||
|
||||
volumes:
|
||||
postgres_datadir:
|
||||
@@ -17,12 +17,6 @@ namespace DockerGenerator
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string SelectedDatabase
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string SelectedLN
|
||||
{
|
||||
get;
|
||||
@@ -45,7 +39,6 @@ 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()
|
||||
|
||||
@@ -8,10 +8,10 @@ namespace DockerGenerator
|
||||
{
|
||||
class Program
|
||||
{
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var root = Environment.GetEnvironmentVariable("INSIDE_CONTAINER") == "1"
|
||||
? FindRoot("app")
|
||||
var root = Environment.GetEnvironmentVariable("INSIDE_CONTAINER") == "1" ? FindRoot("app")
|
||||
: Path.GetFullPath(Path.Combine(FindRoot("docker-compose-generator"), ".."));
|
||||
|
||||
var composition = DockerComposition.FromEnvironmentVariables();
|
||||
@@ -27,9 +27,7 @@ namespace DockerGenerator
|
||||
|
||||
private void Run(DockerComposition composition, string name, string output)
|
||||
{
|
||||
var fragmentLocation = Environment.GetEnvironmentVariable("INSIDE_CONTAINER") == "1"
|
||||
? "app"
|
||||
: "docker-compose-generator";
|
||||
var fragmentLocation = Environment.GetEnvironmentVariable("INSIDE_CONTAINER") == "1" ? "app" : "docker-compose-generator";
|
||||
fragmentLocation = FindRoot(fragmentLocation);
|
||||
fragmentLocation = Path.GetFullPath(Path.Combine(fragmentLocation, "docker-fragments"));
|
||||
|
||||
@@ -51,14 +49,9 @@ namespace DockerGenerator
|
||||
fragments.Add("btcpayserver-noreverseproxy");
|
||||
break;
|
||||
}
|
||||
|
||||
fragments.Add("btcpayserver");
|
||||
fragments.Add("nbxplorer");
|
||||
if (composition.SelectedDatabase != "sqlite")
|
||||
{
|
||||
fragments.Add(composition.SelectedDatabase);
|
||||
}
|
||||
|
||||
fragments.Add("postgres");
|
||||
foreach (var crypto in CryptoDefinition.GetDefinitions())
|
||||
{
|
||||
if (!composition.SelectedCryptos.Contains(crypto.Crypto))
|
||||
@@ -69,7 +62,6 @@ namespace DockerGenerator
|
||||
{
|
||||
fragments.Add(crypto.CLightningFragment);
|
||||
}
|
||||
|
||||
if (composition.SelectedLN == "lnd" && crypto.LNDFragment != null)
|
||||
{
|
||||
fragments.Add(crypto.LNDFragment);
|
||||
@@ -102,4 +94,4 @@ namespace DockerGenerator
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
"BTCPAYGEN_CRYPTO3": "btg",
|
||||
"BTCPAYGEN_CRYPTO2": "ltc",
|
||||
"BTCPAYGEN_CRYPTO1": "btc",
|
||||
"BTCPAYGEN_REVERSEPROXY": "nginx",
|
||||
"BTCPAYGEN_DATABASE": "postgres"
|
||||
"BTCPAYGEN_REVERSEPROXY": "nginx"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user