Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

feat: add Cap to templates

tiago0c1c5c5831f3
diff --git a/public/svgs/cap-captcha.png b/public/svgs/cap-captcha.png
new file mode 100644
index 0000000000..4b6a7df142
Binary files /dev/null and b/public/svgs/cap-captcha.png differ
diff --git a/templates/compose/cap-captcha.yaml b/templates/compose/cap-captcha.yaml
new file mode 100644
index 0000000000..365dc4a2f7
--- /dev/null
+++ b/templates/compose/cap-captcha.yaml
@@ -0,0 +1,27 @@
+# documentation: https://capjs.js.org
+# slogan: The self-hosted CAPTCHA for the modern web.
+# tags: captcha,security,privacy,proof-of-work
+# logo: svgs/cap-captcha.png
+# port: 3000
+
+services:
+ cap:
+ image: tiago2/cap:latest
+ environment:
+ - SERVICE_FQDN_CAP_3000
+ - ADMIN_KEY=$SERVICE_PASSWORD_ADMIN
+ - REDIS_URL=redis://valkey:6379
+ depends_on:
+ valkey:
+ condition: service_healthy
+
+ valkey:
+ image: valkey/valkey:9-alpine
+ volumes:
+ - valkey-data:/data
+ command: valkey-server --save 60 1 --loglevel warning --maxmemory-policy noeviction
+ healthcheck:
+ test: ["CMD", "valkey-cli", "ping"]
+ interval: 5s
+ timeout: 3s
+ retries: 5