mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Update dockers files
This commit is contained in:
parent
30eb1bd80e
commit
ce24f046c0
6 changed files with 47 additions and 21 deletions
|
@ -95,4 +95,8 @@
|
|||
<None Include="wwwroot\vendor\scrollreveal\scrollreveal.js" />
|
||||
<None Include="wwwroot\vendor\scrollreveal\scrollreveal.min.js" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Build\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,12 +0,0 @@
|
|||
version: "3"
|
||||
|
||||
services:
|
||||
btcpayserver:
|
||||
ports:
|
||||
- 23001:23001
|
||||
build:
|
||||
context: .
|
||||
dockerfile: DockerFile
|
||||
|
||||
postgres:
|
||||
image: postgres:9.6.5
|
|
@ -1,7 +0,0 @@
|
|||
pushd .
|
||||
cd ..
|
||||
dotnet restore
|
||||
dotnet publish -c Release
|
||||
popd
|
||||
robocopy ..\bin\Release\netcoreapp2.0\publish\ dockerfiles /e
|
||||
docker-compose up --force-recreate --build
|
|
@ -1,11 +1,11 @@
|
|||
FROM microsoft/aspnetcore:2.0.0
|
||||
|
||||
WORKDIR /app
|
||||
COPY "dockerfiles/" .
|
||||
COPY "bin/Release/netcoreapp2.0/publish" .
|
||||
|
||||
ENV BTCPAY_POSTGRES="User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver"
|
||||
ENV BTCPAY_NETWORK="testnet"
|
||||
ENV BTCPAY_EXPLORERURL="https://nbxplorer-testnet-public.azurewebsites.net/"
|
||||
ENV BTCPAY_BIND="0.0.0.0:80"
|
||||
|
||||
ENTRYPOINT ["dotnet", "BTCPayServer.dll"]
|
||||
ENTRYPOINT ["dotnet", "BTCPayServer.dll"]
|
38
BTCPayServer/docker-compose.regtest.yml
Normal file
38
BTCPayServer/docker-compose.regtest.yml
Normal file
|
@ -0,0 +1,38 @@
|
|||
version: "3"
|
||||
|
||||
services:
|
||||
nbxplorer:
|
||||
image: nicolasdorier/nbxplorer
|
||||
ports:
|
||||
- 23001:23001
|
||||
environment:
|
||||
NBXPLORER_NETWORK: regtest
|
||||
NBXPLORER_RPCURL: http://bitcoind:49372/
|
||||
NBXPLORER_RPCUSER: ceiwHEbqWI83
|
||||
NBXPLORER_RPCPASSWORD: DwubwWsoo3
|
||||
NBXPLORER_NODEENDPOINT: bitcoind:8332
|
||||
NBXPLORER_NOAUTH: 1
|
||||
links:
|
||||
- bitcoind
|
||||
|
||||
bitcoind:
|
||||
image: nicolasdorier/bitcoin:0.15.0.1
|
||||
environment:
|
||||
BITCOIN_EXTRA_ARGS: "regtest=1\nrpcport=49372\nport=8332"
|
||||
BITCOIN_RPC_USER: ceiwHEbqWI83
|
||||
BITCOIN_RPC_PASSWORD: DwubwWsoo3
|
||||
expose:
|
||||
- "49372"
|
||||
- "8332"
|
||||
ports:
|
||||
- 49372:49372
|
||||
|
||||
btcpayserver:
|
||||
ports:
|
||||
- 23001:23001
|
||||
build:
|
||||
context: .
|
||||
dockerfile: DockerFile
|
||||
|
||||
postgres:
|
||||
image: postgres:9.6.5
|
3
BTCPayServer/run-docker.cmd
Normal file
3
BTCPayServer/run-docker.cmd
Normal file
|
@ -0,0 +1,3 @@
|
|||
dotnet restore
|
||||
dotnet publish -c Release
|
||||
docker-compose -f docker-compose.regtest.yml up --force-recreate --build
|
Loading…
Add table
Reference in a new issue