diff --git a/rosetta/infra/docker-compose-offline.yaml b/rosetta/infra/docker-compose-offline.yaml deleted file mode 100644 index d4d8fb6f0..000000000 --- a/rosetta/infra/docker-compose-offline.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/rosetta/infra/docker-compose-testnet.yaml b/rosetta/infra/docker-compose-testnet.yaml index 5a37dbd19..c22a1f9de 100644 --- a/rosetta/infra/docker-compose-testnet.yaml +++ b/rosetta/infra/docker-compose-testnet.yaml @@ -1,7 +1,7 @@ version: "2" services: - node: + online-node: build: context: . dockerfile: Dockerfile @@ -13,5 +13,17 @@ services: - "NETWORK=testnet" volumes: - "./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 \ No newline at end of file diff --git a/rosetta/infra/docker-compose.yaml b/rosetta/infra/docker-compose.yaml index 73ec9ee3e..412cb0d07 100644 --- a/rosetta/infra/docker-compose.yaml +++ b/rosetta/infra/docker-compose.yaml @@ -1,7 +1,7 @@ version: "2" services: - node: + online-node: build: context: . dockerfile: Dockerfile @@ -13,5 +13,17 @@ services: - "NETWORK=mainnet-22816573" volumes: - "./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 \ No newline at end of file diff --git a/rosetta/infra/run.sh b/rosetta/infra/run.sh index ccb668dcc..e8c5810e3 100644 --- a/rosetta/infra/run.sh +++ b/rosetta/infra/run.sh @@ -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