make it easier to run a node
This commit is contained in:
parent
14c754884e
commit
c07a70e199
16
Makefile
16
Makefile
@ -1,21 +1,15 @@
|
||||
default: build
|
||||
|
||||
build: kill
|
||||
build:
|
||||
docker build \
|
||||
-t sneak/steemd \
|
||||
$(BUILD_ARGS) \
|
||||
.
|
||||
|
||||
run: kill
|
||||
docker run \
|
||||
--name sneak-steemd \
|
||||
-e STEEMD_MINING_THREADS=$(STEEMD_MINING_THREADS) \
|
||||
-e STEEMD_WITNESS_NAME=$(STEEMD_WITNESS_NAME) \
|
||||
-e STEEMD_MINER_NAME=$(STEEMD_MINER_NAME) \
|
||||
-e STEEMD_PRIVATE_KEY=$(STEEMD_PRIVATE_KEY) \
|
||||
-d \
|
||||
sneak/steemd
|
||||
docker logs -f sneak-steemd
|
||||
envdir ~/.paths/steemd-secrets \
|
||||
docker-compose up -d
|
||||
|
||||
kill:
|
||||
-docker rm -f sneak-steemd
|
||||
docker-compose kill
|
||||
docker-compose rm -f
|
||||
|
12
docker-compose.yml
Normal file
12
docker-compose.yml
Normal file
@ -0,0 +1,12 @@
|
||||
version: '2.0'
|
||||
|
||||
services:
|
||||
steemd:
|
||||
image: "sneak/steemd"
|
||||
network_mode: bridge
|
||||
environment:
|
||||
- STEEMD_MINER_NAME
|
||||
- STEEMD_PRIVATE_KEY
|
||||
ports:
|
||||
- "8090:8090"
|
||||
- "2001:2001"
|
Loading…
Reference in New Issue
Block a user