Update dockers files

This commit is contained in:
NicolasDorier 2017-09-28 16:35:29 +09:00
parent 30eb1bd80e
commit ce24f046c0
6 changed files with 47 additions and 21 deletions

View file

@ -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>

View file

@ -1,12 +0,0 @@
version: "3"
services:
btcpayserver:
ports:
- 23001:23001
build:
context: .
dockerfile: DockerFile
postgres:
image: postgres:9.6.5

View file

@ -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

View file

@ -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"]

View 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

View file

@ -0,0 +1,3 @@
dotnet restore
dotnet publish -c Release
docker-compose -f docker-compose.regtest.yml up --force-recreate --build