Configure GQL proxy for uniswap app

This commit is contained in:
Nabarun 2023-12-04 09:36:12 +05:30
parent 8020f1c6b5
commit f7b6cbe72b
3 changed files with 22 additions and 1 deletions

View File

@ -6,6 +6,7 @@ services:
restart: on-failure
environment:
- REACT_APP_INFURA_KEY=${CERC_INFURA_KEY}
- REACT_APP_AWS_API_ENDPOINT=${CERC_UNISWAP_GQL}
command: ["./build-app.sh"]
volumes:
- app_builds:/app-builds
@ -29,6 +30,20 @@ services:
timeout: 5s
retries: 15
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:
app_builds:

View File

@ -43,6 +43,8 @@ network:
- 8080:80
uniswap-glob-host:
- 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
# https://docs.infura.io/getting-started#2-create-an-api-key
CERC_INFURA_KEY=
# Uniswap API GQL Endpoint
# Set this to GQL proxy server endpoint for uniswap app
CERC_UNISWAP_GQL=
```
## Start the stack

View File

@ -1,7 +1,7 @@
version: "0.1"
name: uniswap-urbit-app
repos:
- github.com/cerc-io/uniswap-interface@laconic # TODO: Use release
- github.com/cerc-io/uniswap-interface@ng-gql-proxy # TODO: Use release
containers:
- cerc/uniswap-interface
- cerc/urbit-globs-host