Configure GQL proxy for uniswap app
This commit is contained in:
parent
8020f1c6b5
commit
f7b6cbe72b
@ -6,6 +6,7 @@ services:
|
|||||||
restart: on-failure
|
restart: on-failure
|
||||||
environment:
|
environment:
|
||||||
- REACT_APP_INFURA_KEY=${CERC_INFURA_KEY}
|
- REACT_APP_INFURA_KEY=${CERC_INFURA_KEY}
|
||||||
|
- REACT_APP_AWS_API_ENDPOINT=${CERC_UNISWAP_GQL}
|
||||||
command: ["./build-app.sh"]
|
command: ["./build-app.sh"]
|
||||||
volumes:
|
volumes:
|
||||||
- app_builds:/app-builds
|
- app_builds:/app-builds
|
||||||
@ -29,6 +30,20 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 15
|
retries: 15
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
|
uniswap-gql-proxy:
|
||||||
|
image: cerc/uniswap-interface:local
|
||||||
|
restart: on-failure
|
||||||
|
command: ["bash", "-c", "yarn proxy-gql"]
|
||||||
|
ports:
|
||||||
|
- "4000"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "nc", "-v", "localhost", "4000"]
|
||||||
|
interval: 20s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 15
|
||||||
|
start_period: 10s
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
app_builds:
|
app_builds:
|
||||||
|
@ -43,6 +43,8 @@ network:
|
|||||||
- 8080:80
|
- 8080:80
|
||||||
uniswap-glob-host:
|
uniswap-glob-host:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
|
uniswap-gql-proxy:
|
||||||
|
- 4000:4000
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -67,6 +69,10 @@ Inside the deployment directory, open the file `config.env` and add variable for
|
|||||||
# External RPC endpoints
|
# External RPC endpoints
|
||||||
# https://docs.infura.io/getting-started#2-create-an-api-key
|
# https://docs.infura.io/getting-started#2-create-an-api-key
|
||||||
CERC_INFURA_KEY=
|
CERC_INFURA_KEY=
|
||||||
|
|
||||||
|
# Uniswap API GQL Endpoint
|
||||||
|
# Set this to GQL proxy server endpoint for uniswap app
|
||||||
|
CERC_UNISWAP_GQL=
|
||||||
```
|
```
|
||||||
|
|
||||||
## Start the stack
|
## Start the stack
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
version: "0.1"
|
version: "0.1"
|
||||||
name: uniswap-urbit-app
|
name: uniswap-urbit-app
|
||||||
repos:
|
repos:
|
||||||
- github.com/cerc-io/uniswap-interface@laconic # TODO: Use release
|
- github.com/cerc-io/uniswap-interface@ng-gql-proxy # TODO: Use release
|
||||||
containers:
|
containers:
|
||||||
- cerc/uniswap-interface
|
- cerc/uniswap-interface
|
||||||
- cerc/urbit-globs-host
|
- cerc/urbit-globs-host
|
||||||
|
Loading…
Reference in New Issue
Block a user