fixed rosetta offline config

pull/4094/head
haodi 3 years ago committed by Leo Chen
parent 5b95dd685f
commit c055bc1fd8
  1. 17
      rosetta/infra/docker-compose-offline.yaml
  2. 14
      rosetta/infra/docker-compose-testnet.yaml
  3. 14
      rosetta/infra/docker-compose.yaml
  4. 2
      rosetta/infra/run.sh

@ -1,17 +0,0 @@
version: "2"
services:
node:
build:
context: .
dockerfile: Dockerfile
privileged: true
ports:
- "8080:9700"
environment:
- "MODE=offline"
- "NETWORK=mainnet-22816573"
volumes:
- "./data:/root/data/"
labels:
service_group: rosetta

@ -1,7 +1,7 @@
version: "2"
services:
node:
online-node:
build:
context: .
dockerfile: Dockerfile
@ -15,3 +15,15 @@ services:
- "./data:/root/data/"
labels:
service_group: rosetta
offline-node:
build:
context: .
dockerfile: Dockerfile
privileged: true
ports:
- "8081:9700"
environment:
- "MODE=offline"
- "NETWORK=testnet"
labels:
service_group: rosetta

@ -1,7 +1,7 @@
version: "2"
services:
node:
online-node:
build:
context: .
dockerfile: Dockerfile
@ -15,3 +15,15 @@ services:
- "./data:/root/data/"
labels:
service_group: rosetta
offline-node:
build:
context: .
dockerfile: Dockerfile
privileged: true
ports:
- "8081:9700"
environment:
- "MODE=offline"
- "NETWORK=mainnet"
labels:
service_group: rosetta

@ -26,7 +26,7 @@ testnet)
esac
if [ "$MODE" = "offline" ]; then
BASE_ARGS=(--datadir "$DATA" --log.dir "$LOGS" --run.offline --dns.server false --dns.client false --sync.legacy.server false --sync.legacy.client false)
BASE_ARGS=(--datadir "$DATA" --log.dir "$LOGS" --run.offline)
else
BASE_ARGS=(--datadir "$DATA" --log.dir "$LOGS")
fi

Loading…
Cancel
Save