Add stack

This commit is contained in:
Shreerang Kale 2025-08-04 14:32:32 +05:30
parent 2b140e16df
commit adbdff12f0
4 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,23 @@
services:
mock-lockdrop-watcher-server:
image: cerc/mock-lockdrop-watcher:local
restart: unless-stopped
environment:
PORT: ${PORT:-6000}
VERIFIED_PARTICIPANTS_PATH: /tmp/watcher-data/verified-participants.json
GENERATED_WATCHER_EVENTS_OUTPUT_PATH: /tmp/watcher-data/generated
working_dir: /app/
command: "node --enable-source-maps dist/index.js"
volumes:
- watcher-data:/tmp/watcher-data
ports:
- "6000"
healthcheck:
test: ["CMD", "nc", "-vz", "127.0.0.1", "6000"]
interval: 20s
timeout: 5s
retries: 15
start_period: 5s
volumes:
watcher-data:

View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Build cerc/mock-lockdrop-watcher
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
# See: https://stackoverflow.com/a/246128/1701505
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
CERC_NPM_REGISTRY_URL="https://git.vdb.to/api/packages/cerc-io/npm/"
docker build -t cerc/mock-lockdrop-watcher:local ${build_command_args} ${CERC_REPO_BASE_DIR}/mock-lockdrop-watcher

View File

@ -0,0 +1 @@
# mock-lockdrop-watcher

View File

@ -0,0 +1,8 @@
version: "1.0"
name: mock-lockdrop-watcher
description: "Mock lockdrop contract watcher"
repos:
containers:
- cerc/mock-lockdrop-watcher
pods:
- mock-lockdrop-watcher