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" version: "2"
services: services:
node: online-node:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
@ -13,5 +13,17 @@ services:
- "NETWORK=testnet" - "NETWORK=testnet"
volumes: volumes:
- "./data:/root/data/" - "./data:/root/data/"
labels:
service_group: rosetta
offline-node:
build:
context: .
dockerfile: Dockerfile
privileged: true
ports:
- "8081:9700"
environment:
- "MODE=offline"
- "NETWORK=testnet"
labels: labels:
service_group: rosetta service_group: rosetta

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

@ -26,7 +26,7 @@ testnet)
esac esac
if [ "$MODE" = "offline" ]; then 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 else
BASE_ARGS=(--datadir "$DATA" --log.dir "$LOGS") BASE_ARGS=(--datadir "$DATA" --log.dir "$LOGS")
fi fi

Loading…
Cancel
Save