Git Product home page Git Product logo

docker-goatcounter's Introduction

baethon/goatcounter

Unofficial Docker image for goatcounter - simple web statistics

How to use this image

docker run --name goatcounter \
  -e GOATCOUNTER_DOMAIN=stats.domain.com \
  -e [email protected] \
  baethon/goatcounter

This command will start a single instance with pre-configured stats.domain.com site.

GOATCOUNTER_DOMAIN and GOATCOUNTER_EMAIL are mandatory.

Environment Variables

GOATCOUNTER_DOMAIN

This mandatory environment variable is used to create the initial site.

GOATCOUNTER_EMAIL

This mandatory environment variable defines the e-mail address of the admin user.

It's used to create the initial site and is passed as an -auth option to the serve command.

GOATCOUNTER_PASSWORD

Available since v1.4.

This mandatory environment variable defines the password of the admin user.

GOATCOUNTER_SMTP

This optional environment variable defines the SMTP server (e.g., smtp://user:[email protected]:587) which will be used by the server.

Default: stdout - print email contents to stdout

GOATCOUNTER_DB

This optional environment variable defines the location of the database. By default, the server will use SQLite database which is recommended solution.

It's possible to use the Postgres DB however, the image was not tested against it.

Don't change this value unless you know what you're doing.

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

Troubleshooting

The server displays migration info

During startup, the container will try to execute all available migrations. What you see, is the output of goatcounter migrate command.

line X: GOATCOUNTER_*: unbound variable

You forgot to set one of the mandatory env variables.

zdb.TX fn: cname: already exists.

The entrypoint script tries to create the initial site on every container startup. Once it's created, the goatcounter create command will report this error. It's safe to ignore it.

docker-goatcounter's People

Contributors

radmen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-goatcounter's Issues

version 2.x

can you bump to 2.x ? also... this image seems to not work anymore

"flag provided but not defined: -auth" when running the Docker image

When running the image, I get the following errors:

$ docker run --name goatcounter \
  -e GOATCOUNTER_DOMAIN=stats.domain.com \
  -e [email protected] \
  baethon/goatcounter

goatcounter_1  | flag provided but not defined: -auth
goatcounter_1  | flag provided but not defined: -auth

The Docker image works correctly when the 1.4 tag is defined:

docker run --name goatcounter \
  -e GOATCOUNTER_DOMAIN=stats.domain.com \
  -e [email protected] \
  baethon/goatcounter:1.4

Apply license

Please apply an FOSS compliant license to your scripts so that someone can fork your repository and continue/contribute to the great work you did.

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.