Open MacchiattoMark opened 5 years ago
docker run -v ~/data/btc:/bitcoin \ --name=bitcoind-node \ -d \ -p 18332:18332 -p 18333:18333 \ -p 8333:8333 -p 8332:8332 \ kylemanna/bitcoind
docker run -d --name eth-test -v /Users/dev/ethereum:/root --restart=always \ -p 8545:8545 -p 30303:30303 \ ethereum/client-go --testnet --rpc --rpcaddr "0.0.0.0" --rpccorsdomain "*" --rpcapi "admin,debug,eth,miner,net,personal,shh,txpool,web3" --syncmode "fast"
docker run -d -p 5000:5000offline-wallettini -- flask run --host 0.0.0.0 --port 5000 docker run -d -p 5000:5000 python3.6.5:1.0 -- flask run --host 0.0.0.0 --port 5000
docker run -d -p 5000:5000
tini -- flask run --host 0.0.0.0 --port 5000
docker run -d -p 5000:5000 python3.6.5:1.0 -- flask run --host 0.0.0.0 --port 5000
docker run -p 6379:6379 -v ~/data:/data -d redis:latest redis-server --appendonly yes
FROM python:3.6-alpine RUN apk update \ && apk upgrade \ && apk add --no-cache gcc musl-dev libffi-dev py-cffi libc-dev linux-headers \ && apk add --no-cache tini ENV PYTHONUNBUFFERED 1 COPY ./requirements.txt /requirements.txt RUN pip install --no-cache-dir -r /requirements.txt COPY . /app WORKDIR /app CMD ["python3"]
btc:测试节点
docker run -v ~/data/btc:/bitcoin \ --name=bitcoind-node \ -d \ -p 18332:18332 -p 18333:18333 \ -p 8333:8333 -p 8332:8332 \ kylemanna/bitcoind
eth:测试节点
docker run -d --name eth-test -v /Users/dev/ethereum:/root --restart=always \ -p 8545:8545 -p 30303:30303 \ ethereum/client-go --testnet --rpc --rpcaddr "0.0.0.0" --rpccorsdomain "*" --rpcapi "admin,debug,eth,miner,net,personal,shh,txpool,web3" --syncmode "fast"
flask 项目
docker run -d -p 5000:5000
offline-wallettini -- flask run --host 0.0.0.0 --port 5000
docker run -d -p 5000:5000 python3.6.5:1.0 -- flask run --host 0.0.0.0 --port 5000
redis
docker run -p 6379:6379 -v ~/data:/data -d redis:latest redis-server --appendonly yes
python 镜像3.6