62fb3a9fee
This commit adds two Dockerfiles, along with a docker-compose file which links the two docker files together allowing for single-command deployment. Using the docker-compose file, two containers are deployed. One running btcd, and the other running lnd. Both containers share the same shared volume mounted to the file system in order to allow land to read btcd’s certificates for the TLS RPC connections. Additionally, the btcd instance comes will an automatic RPC configuration generated allowing one to use btcctl out of the box via calls to “docker-compose exec btcctl …”.
15 lines
470 B
Docker
15 lines
470 B
Docker
FROM golang:1.6.2
|
|
|
|
MAINTAINER Olaoluwa Osuntokun <laolu@lightning.network>
|
|
|
|
# Grab and install the latest version of lnd and all related dependencies.
|
|
# TODO(roasbeef): replace with glide install
|
|
RUN go get -u -v github.com/lightningnetwork/lnd/...
|
|
|
|
VOLUME ["/data"]
|
|
|
|
# Expose the p2p listening port, and the current RPC port.
|
|
EXPOSE 10009 10011
|
|
|
|
ENTRYPOINT ["/go/bin/lnd", "--datadir=/data", "--logdir=/data", "--segnet", "--btcdhost=btcd", "--rpccert=/data/rpc.cert"]
|