initial commit
This commit is contained in:
commit
2149babf09
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
FROM ubuntu:trusty
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y supervisor software-properties-common && \
|
||||
add-apt-repository -y ppa:bitcoin/bitcoin && \
|
||||
apt-get update && \
|
||||
apt-get install -y bitcoind && \
|
||||
apt-get clean && \
|
||||
useradd -m crypto && \
|
||||
su -c "mkdir /home/crypto/bitcoin/" crypto && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ADD bitcoin.conf /home/crypto/bitcoin.conf
|
||||
ADD supervisor-bitcoin.conf /etc/supervisor/conf.d/bitcoin.conf
|
||||
|
||||
VOLUME /home/crypto/bitcoin/
|
||||
EXPOSE 8332 8333
|
||||
|
||||
CMD supervisord
|
8
bitcoin.conf
Normal file
8
bitcoin.conf
Normal file
@ -0,0 +1,8 @@
|
||||
listen=1
|
||||
port=8333
|
||||
server=1
|
||||
rpcuser=bobby
|
||||
rpcpassword=propane
|
||||
rpcport=8332
|
||||
rpcallowip=0.0.0.0/0
|
||||
datadir=/home/crypto/bitcoin/
|
6
supervisor-bitcoin.conf
Normal file
6
supervisor-bitcoin.conf
Normal file
@ -0,0 +1,6 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
|
||||
[program:bitcoind]
|
||||
command=su -c "bitcoind -conf=/home/crypto/bitcoin.conf" crypto
|
||||
autorestart=true
|
Loading…
Reference in New Issue
Block a user