Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clowa/visitors
Really basic golang application to count website visitors
https://github.com/clowa/visitors
docker golang
Last synced: 19 days ago
JSON representation
Really basic golang application to count website visitors
- Host: GitHub
- URL: https://github.com/clowa/visitors
- Owner: clowa
- License: mit
- Created: 2022-04-03T18:56:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-01T16:21:34.000Z (7 months ago)
- Last Synced: 2025-01-09T06:22:32.740Z (20 days ago)
- Topics: docker, golang
- Language: Go
- Homepage:
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build docker images](https://github.com/clowa/visitors/actions/workflows/docker-test.yml/badge.svg)](https://github.com/clowa/visitors/actions/workflows/docker-test.yml)
# Overview
Basic golang application displaying the total number of visitors of the website. A redis database is used
Supported platforms:
- `linux/386`
- `linux/s390x`
- `linux/amd64`
- `linux/arm/v6`
- `linux/arm/v7`
- `linux/arm64`
- `linux/mips64le`# Getting started
To run the application locally you can simply do this via docker.
1. Clone this repository by running 'git clone ...'
2. Start the docker containers by running `docker-compose up --build`
3. Visit http://localhost# Configuration
The following environment variables can be used to configure the application:
| Variable | Description | Example |
|-----------------------|--------------------------------------|--------------|
| `VISITORS_PORT` | Listening port of web app | `8080` |
| `VISITORS_REDIS_HOST` | IP or DNS of redis backend with port | `redis:6379` |
| `VISITORS_REDIS_DB` | Redis database ID to use | `0` |