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
|
default: build
|
||||||
|
|
||||||
build: kill
|
build:
|
||||||
docker build \
|
docker build \
|
||||||
-t sneak/steemd \
|
-t sneak/steemd \
|
||||||
$(BUILD_ARGS) \
|
$(BUILD_ARGS) \
|
||||||
.
|
.
|
||||||
|
|
||||||
run: kill
|
run: kill
|
||||||
docker run \
|
envdir ~/.paths/steemd-secrets \
|
||||||
--name sneak-steemd \
|
docker-compose up -d
|
||||||
-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
|
|
||||||
|
|
||||||
kill:
|
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