Self-host GoatCounter with Levelrail

Verified

A privacy-friendly, open-source web analytics platform that never tracks individual visitors.

  • Authorarp242Verified by Levelrail
  • LicenceEUPL-1.2
  • Memory128 MiB
  • Archarm64
  • Services1

How to self-host GoatCounter

  1. Pull the images

    One image is pulled on your server.

    Show images
    • arp242/goatcounter:2.7
  2. Create the app

    One service starts in a single Compose app, with 1 named volume mount for your data, on port 8080.

  3. Fill in the secrets

    You do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

GoatCounter requirements

Memory
About 128 MiB
Architectures
amd64 image published, arm64 tested
Ports
8080
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
EUPL-1.2, copyleft license
  • Verified. Verified on arm64 with image tag 2.7. Our CI ran this exact image version and it answered on its health path. Evidence
  • Host ports. It publishes port 8080 on the host, so open them in the VPS firewall only if you want that.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then GoatCounter. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the GoatCounter docs page.

Deploy GoatCounter your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy GoatCounter from the CLI

levelrail-cli templates deploy goatcounter --name my-goatcounter

Deploy GoatCounter with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/goatcounter/deploy

GoatCounter configuration

GoatCounter services

ServiceImagePortsVolumes
goatcounter arp242/goatcounter:2.7 8080 goatcounter_data -> /home/goatcounter/goatcounter-data

GoatCounter environment variables

The catalog lists no environment variables for this template.

Ports and volumes

Ports
8080
Volumes
1 named mount: goatcounter_data -> /home/goatcounter/goatcounter-data

GoatCounter FAQ

How much memory does GoatCounter need?

The catalog lists about 128 MiB of memory for GoatCounter.

Does GoatCounter run on arm64?

For GoatCounter, arm64 is tested; amd64 is image published.

What licence is GoatCounter under?

GoatCounter is licensed under EUPL-1.2, which is copyleft, so changes you distribute must be shared under the same terms.

Does GoatCounter need configuration before it starts?

No. The template fills in its own defaults.

Which ports does GoatCounter use?

GoatCounter listens on port 8080 inside the stack.

Where does GoatCounter keep its data?

In a named volume: goatcounter_data mounted at /home/goatcounter/goatcounter-data.

Can I deploy GoatCounter on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id goatcounter for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image arp242/goatcounter:2.7 is what you deploy there.

levelrail-cli templates deploy goatcounter --name my-goatcounter