forked from cerc-io/stack-orchestrator
6bef0c5b2f
* Separate out uniswap gql proxy in a stack * Use proxy server from watcher-ts * Add a flag to enable/disable the proxy server * Update env configuratoin for uniswap urbit app stack * Update stack file for uniswap urbit app stack * Fix env variables in instructions
23 lines
583 B
YAML
23 lines
583 B
YAML
version: "3.2"
|
|
|
|
services:
|
|
proxy-server:
|
|
image: cerc/watcher-ts:local
|
|
restart: on-failure
|
|
working_dir: /app/packages/cli
|
|
environment:
|
|
ENABLE_PROXY: ${ENABLE_PROXY:-true}
|
|
PROXY_UPSTREAM: ${CERC_PROXY_UPSTREAM}
|
|
PROXY_ORIGIN_HEADER: ${CERC_PROXY_ORIGIN_HEADER}
|
|
command: ["sh", "-c", "./run.sh"]
|
|
volumes:
|
|
- ../config/proxy-server/run.sh:/app/packages/cli/run.sh
|
|
ports:
|
|
- "4000"
|
|
healthcheck:
|
|
test: ["CMD", "nc", "-v", "localhost", "4000"]
|
|
interval: 20s
|
|
timeout: 5s
|
|
retries: 15
|
|
start_period: 10s
|