Skip to content

feat: add docker containerization for keeper service (#79) - #732

Merged
orunganiekan merged 4 commits into
SiLioLabs:masterfrom
Abdullahi-Code9:feat/keeper-docker
Jul 31, 2026
Merged

feat: add docker containerization for keeper service (#79)#732
orunganiekan merged 4 commits into
SiLioLabs:masterfrom
Abdullahi-Code9:feat/keeper-docker

Conversation

@Abdullahi-Code9

Copy link
Copy Markdown
Contributor

Closes #585

📝 Description

This PR introduces full Docker containerization for the PayFlow keeper service. It provides a multi-stage Dockerfile, a production-ready docker-compose.yml, environment configuration templates, isolated build configurations, and comprehensive operational documentation in scripts/README.md.

🚀 Changes Made

1. Multi-Stage Dockerfile (scripts/Dockerfile)

  • Built with a 2-stage setup using node:20-alpine:
    • Stage 1 (Builder): Compiles TypeScript using tsconfig.build.json.
    • Stage 2 (Runtime): Minimal slim image with production dependencies only.
  • Executed securely under non-root USER node.
  • Configured container health monitoring via native wget health checks.

2. Docker Compose & Environment setup (docker-compose.yml, .env.example)

  • Added docker-compose.yml configured with restart: unless-stopped, 60-second graceful stop timeouts, rotating JSON log driver, and resource caps.
  • Provided .env.example documenting all 7 keeper environment variables.

3. Core Keeper Logic & Documentation (scripts/keeper.ts, scripts/README.md)

  • Added scripts/keeper.ts supporting paginated batch_charge(offset, limit) execution with structured JSON logging for aggregator compatibility and graceful SIGINT/SIGTERM shutdown handling.
  • Authored documentation covering local execution, Docker deployment, environment variables, and health checks.

🧪 Verification & Testing

Type Safety Verification

Verified strict TypeScript compilation:

npx tsc --noEmit

@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@Abdullahi-Code9 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@orunganiekan
orunganiekan merged commit ba2f8dc into SiLioLabs:master Jul 31, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

## Issue #79: Add Docker Containerization for Keeper Service

2 participants