mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 13:03:46 +00:00
Add Smee webhook forwarding service
This commit is contained in:
parent
6e95596799
commit
5c70cbcd23
3 changed files with 20 additions and 0 deletions
|
|
@ -111,6 +111,24 @@ services:
|
|||
- "foundry_shared_node_modules:/app/foundry/packages/shared/node_modules"
|
||||
- "foundry_pnpm_store:/tmp/.local/share/pnpm/store"
|
||||
|
||||
smee:
|
||||
image: node:20-alpine
|
||||
depends_on:
|
||||
- backend
|
||||
environment:
|
||||
SMEE_URL: "${SMEE_URL:-}"
|
||||
SMEE_TARGET: "${SMEE_TARGET:-http://backend:7741/api/rivet/app/webhooks/github}"
|
||||
command:
|
||||
- /bin/sh
|
||||
- -lc
|
||||
- |
|
||||
if [ -z "$SMEE_URL" ]; then
|
||||
echo "SMEE_URL is not set; exiting"
|
||||
exit 1
|
||||
fi
|
||||
npx --yes smee-client --url "$SMEE_URL" --target "$SMEE_TARGET"
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
foundry_backend_root_node_modules: {}
|
||||
foundry_backend_backend_node_modules: {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue