Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions blueprints/goatcounter/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
services:
postgres:
image: postgres:18-alpine
restart: unless-stopped
environment:
POSTGRES_USER: goatcounter
POSTGRES_PASSWORD: ${DB_PASSWORD:?DB_PASSWORD is required}
POSTGRES_DB: goatcounter
volumes:
- postgres_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U goatcounter -d goatcounter"]
interval: 5s
timeout: 5s
retries: 5

goatcounter:
image: arp242/goatcounter:2.7
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
expose:
- "8080"
environment:
GOATCOUNTER_DB: "postgresql+postgresql://goatcounter:${DB_PASSWORD:?DB_PASSWORD is required}@postgres:5432/goatcounter?sslmode=disable"
GOATCOUNTER_LISTEN: "0.0.0.0:8080"
command:
- serve
- -automigrate

volumes:
postgres_data:
1 change: 1 addition & 0 deletions blueprints/goatcounter/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions blueprints/goatcounter/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"id": "goatcounter",
"name": "GoatCounter",
"version": "2.7.0",
"description": "GoatCounter is an open source web analytics platform available as a free donation-supported hosted service or self-hosted app. It aims to offer easy to use and meaningful privacy-friendly web analytics as an alternative to Google Analytics or Matomo.",
"logo": "logo.svg",
"links": {
"website": "https://www.goatcounter.com/",
"github": "https://github.com/arp242/goatcounter",
"docs": "https://www.goatcounter.com/help/"
},
"tags": ["analytics", "privacy"]
}
12 changes: 12 additions & 0 deletions blueprints/goatcounter/template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[variables]
db_password = "${password:32}"
goatcounter_domain = "${domain}"

[config]
env = ["DB_PASSWORD=${db_password}"]

[[config.domains]]
serviceName = "goatcounter"
port = 8080
host = "${goatcounter_domain}"
https = true
Loading