Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #63 from threefoldtech/development_upgrade_grid_ht…
Browse files Browse the repository at this point in the history
…tp_2.1.0

ugrade grid_http_server version to 2.1.0
  • Loading branch information
muhamadazmy authored Sep 11, 2023
2 parents ed1808e + babf1cf commit a6a3f69
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,30 @@ services:
grid3_client:
condition: service_healthy
entrypoint: /bin/sh -c
command: ["/usr/sbin/rmb-peer --redis redis://redis:6379 --mnemonic \"$SECRET\" --relay \"$RELAY\" --substrate \"$SUBSTRATE\" -d"]
command:
[
"/usr/sbin/rmb-peer --redis redis://redis:6379 --mnemonic \"$SECRET\" --relay \"$RELAY\" --substrate \"$SUBSTRATE\" -d"
]

grid3_client:
image: ghcr.io/threefoldtech/grid_http_server:2.0.0
image: ghcr.io/threefoldtech/grid_http_server:2.1.0
restart: always
depends_on:
redis:
condition: service_healthy
entrypoint: /bin/sh -c
command: ["echo \"{\\\"network\\\":\\\"$NETWORK\\\",\\\"mnemonic\\\":\\\"$SECRET\\\",\\\"rmb_proxy\\\":false,\\\"keypairType\\\":\\\"sr25519\\\"}\" > ~/config.json && yarn grid_http_server -c ~/config.json" ]
command:
[
"echo \"{\\\"network\\\":\\\"$NETWORK\\\",\\\"mnemonic\\\":\\\"$SECRET\\\",\\\"rmb_proxy\\\":false,\\\"keypairType\\\":\\\"sr25519\\\"}\" > ~/config.json && yarn grid_http_server -c ~/config.json"
]
ports:
- '3000'
healthcheck:
test: ["CMD-SHELL", "curl --fail -X POST -H \"Content-Type: application/json\" http://127.0.0.1:3000/ping || exit 1"]
test:
[
"CMD-SHELL",
"curl --fail -X POST -H \"Content-Type: application/json\" http://127.0.0.1:3000/ping || exit 1"
]
interval: 10s
timeout: 3s
retries: 30
Expand All @@ -46,10 +56,10 @@ services:
ports:
- '6379'
command: --save 20 1
volumes:
volumes:
- db:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
test: [ "CMD", "redis-cli", "ping" ]
interval: 1s
timeout: 3s
retries: 30
Expand Down

0 comments on commit a6a3f69

Please sign in to comment.