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(service): add goatcounter template (#8029)

Max0cab2d4eaab3
diff --git a/svgs/goatcounter.svg b/svgs/goatcounter.svg
new file mode 100644
index 0000000000..9477e03548
--- /dev/null
+++ b/svgs/goatcounter.svg
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 417 429" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"><rect id="Artboard4" x="0.586" y="0" width="415.356" height="428.505" style="fill:none;"/><clipPath id="_clip1"><rect x="0.586" y="0" width="415.356" height="428.505"/></clipPath><g clip-path="url(#_clip1)"><path d="M25.399,235.075l118.517,-135.285c0,0 -124.734,-57.004 -120.995,-58.98c182.412,-96.381 370.769,214.033 370.769,214.033l-24.839,65.501c0,0 -169.954,-0.509 -192.464,-75.727" style="fill:none;stroke:#9a15a4;stroke-width:44.5px;"/><path d="M179.11,406.252c-0.044,-36.273 38.389,-117.225 38.389,-117.225" style="fill:none;stroke:#9a15a4;stroke-width:44.5px;"/></g></svg>
\ No newline at end of file
diff --git a/templates/compose/goatcounter.yaml b/templates/compose/goatcounter.yaml
new file mode 100644
index 0000000000..3ff1ccb5bd
--- /dev/null
+++ b/templates/compose/goatcounter.yaml
@@ -0,0 +1,19 @@
+# documentation: https://www.goatcounter.com/help
+# slogan: Lightweight web analytics platform.
+# category: analytics
+# tags: analytics, insights, privacy
+# logo: svgs/goatcounter.svg
+# port: 8080
+
+services:
+ goatcounter:
+ image: arp242/goatcounter:2.7
+ environment:
+ - SERVICE_URL_GOATCOUNTER_8080
+ volumes:
+ - goatcounter-data:/home/goatcounter/goatcounter-data
+ healthcheck:
+ test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8080/status >/dev/null 2>&1 || exit 1"]
+ interval: 10s
+ timeout: 5s
+ retries: 10