2023-12-06 05:11:10 +00:00
|
|
|
version: "3.2"
|
|
|
|
|
|
|
|
services:
|
|
|
|
proxy-server:
|
|
|
|
image: cerc/watcher-ts:local
|
|
|
|
restart: on-failure
|
|
|
|
working_dir: /app/packages/cli
|
|
|
|
environment:
|
2023-12-08 04:05:00 +00:00
|
|
|
ENABLE_PROXY: ${CERC_ENABLE_PROXY:-true}
|
2023-12-06 05:11:10 +00:00
|
|
|
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
|