Skip to content

Commit

Permalink
fix(common): fix docker and cleos executions (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
danazkari authored and gaboesquivel committed Sep 20, 2018
1 parent 837bddf commit 50f04d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cleos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Go into cmd loop: sudo ./cleos.sh
# Run single cmd: sudo ./cleos.sh <cleos paramers>

PREFIX="docker-compose exec nodeosd cleos"
PREFIX="docker-compose exec keosd cleos --url http://nodeosd:8888"
if [ -z $1 ] ; then
while :
do
Expand Down
16 changes: 6 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:
nodeosd:
image: eosio/eos-dev
command: /opt/eosio/bin/nodeosd.sh --data-dir /opt/eosio/bin/data-dir -e # --replay-blockchain --hard-replay-blockchain
command: /opt/eosio/bin/nodeosd.sh --data-dir /opt/eosio/bin/data-dir -e --http-validate-host=false # --replay-blockchain --hard-replay-blockchain
hostname: nodeosd
ports:
- 8888:8888
Expand All @@ -12,17 +12,13 @@ services:
- "8888"
volumes:
- nodeos-data-volume:/opt/eosio/bin/data-dir
environment:
- VIRTUAL_HOST=local.eosio.cr
- VIRTUAL_PORT=8888
cap_add:
- IPC_LOCK
stop_grace_period: 10m
networks:
eos-local:
aliases:
- local.eosio.cr

environment:
- VIRTUAL_HOST=local.eosio.cr
- VIRTUAL_PORT=8888
keosd:
image: eosio/eos-dev
command: /opt/eosio/bin/keosd --wallet-dir /opt/eosio/bin/data-dir --http-server-address=127.0.0.1:8900
Expand All @@ -33,7 +29,7 @@ services:
- keosd-data-volume:/opt/eosio/bin/data-dir
stop_grace_period: 10m
networks:
eos-local:
- eos-local

nginx-proxy:
image: jwilder/nginx-proxy
Expand All @@ -42,7 +38,7 @@ services:
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
eos-local:
- eos-local

volumes:
nodeos-data-volume:
Expand Down

0 comments on commit 50f04d6

Please sign in to comment.