Giter VIP home page Giter VIP logo

goatcounter-docker's Introduction

Goatcounter in Docker

This is an unofficial Docker image for Goatcounter, heavily based on baethon/docker-goatcounter, but adapted to use Goatcounter v2.

How to use this image

docker run --name goatcounter \
  -p 8080:8080 \
  -v $(pwd)/db:/goatcounter/db \
  -e GOATCOUNTER_DOMAIN=stats.domain.com \
  -e [email protected] \
  -e GOATCOUNTER_PASSWORD=pa55w0rd \
  ghcr.io/riesinger/goatcounter-docker:2

Environment variables

GOATCOUNTER_DOMAIN · Mandatory

This variable is used to create the initial site. Set this to the domain you want to run Goatcounter on.

GOATCOUNTER_EMAIL · Mandatory

Defines the email address of the admin user. Used to sign in.

GOATCOUNTER_PASSWORD · Mandatory

The password to use for the admin account. It is recommended to not pass this on the CLI but to read it from a file, for example using docker-compose.

GOATCOUNTER_SMTP · Optional

Sets the SMTP server to be used by the server to send emails.

Example: smtp://user:[email protected]:587 Default: stdout - print email contents to stdout

GOATCOUNTER_DB · Optional

The database to use. By default, the server will use an SQLite database which is the easiest solution. Note that this image isn't tested for usage with PostgreSQL, but it should work fine.

For persistence when using SQLite, make sure to mount a volume into /goatcounter/db, for example with docker run -v $(pwd)/db:/goatcounter/db ...

Default: sqlite:///goatcounter/db/goatconter.sqlite3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.