ackee++
This commit is contained in:
parent
5e5cea9dd6
commit
f9393152fd
4 changed files with 50 additions and 1 deletions
10
ackee_cloudflare/.env
Normal file
10
ackee_cloudflare/.env
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Cloudflare Tunnel Token
|
||||||
|
# Add tunnel to "http://ackee:3000"
|
||||||
|
TUNNEL_TOKEN= ##REQUIRED##
|
||||||
|
|
||||||
|
# Administrative user and password
|
||||||
|
ACKEE_USERNAME=admin
|
||||||
|
ACKEE_PASSWORD=password
|
||||||
|
|
||||||
|
# or "*" if allowing arbitrary domains
|
||||||
|
ACKEE_ALLOW_ORIGIN=www.mydomain.com
|
12
ackee_cloudflare/README.md
Normal file
12
ackee_cloudflare/README.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# Ackee (Metrics) and Cloudflare
|
||||||
|
|
||||||
|
Ackee is a great privacy respecting self-hosted website metrics tool.
|
||||||
|
|
||||||
|
Requires:
|
||||||
|
* Cloudflare Tunnel
|
||||||
|
|
||||||
|
Steps:
|
||||||
|
|
||||||
|
1. Setup your Tunnel (pointing to `http://ackee:3000`)
|
||||||
|
2. Set Cloudflare Tunnel token and other admin credentials in `.env`
|
||||||
|
4. `docker compose up -d`
|
27
ackee_cloudflare/docker-compose.yml
Normal file
27
ackee_cloudflare/docker-compose.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
services:
|
||||||
|
|
||||||
|
tunnel:
|
||||||
|
image: cloudflare/cloudflared
|
||||||
|
command: tunnel --no-autoupdate run
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
TUNNEL_TOKEN: ${TUNNEL_TOKEN}
|
||||||
|
|
||||||
|
ackee:
|
||||||
|
image: electerious/ackee
|
||||||
|
restart: always
|
||||||
|
container_name: metrics
|
||||||
|
environment:
|
||||||
|
- WAIT_HOSTS=mongo:27017
|
||||||
|
- ACKEE_MONGODB=mongodb://mongo:27017/ackee
|
||||||
|
- ACKEE_USERNAME=${ACKEE_USERNAME}
|
||||||
|
- ACKEE_PASSWORD=${ACKEE_PASSWORD}
|
||||||
|
- ACKEE_ALLOW_ORIGIN=${ACKEE_ALLOW_ORIGIN}
|
||||||
|
depends_on:
|
||||||
|
- mongo
|
||||||
|
|
||||||
|
mongo:
|
||||||
|
image: mongo
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./data/db:/data/db
|
|
@ -10,5 +10,5 @@ Requires:
|
||||||
Steps:
|
Steps:
|
||||||
|
|
||||||
1. Setup your Tunnel (pointing to `http://app:3000`)
|
1. Setup your Tunnel (pointing to `http://app:3000`)
|
||||||
2. Set Cloudflare Tunnel token and other secrets in in `.env`
|
2. Set Cloudflare Tunnel token and other secrets in `.env`
|
||||||
4. `docker compose up -d`
|
4. `docker compose up -d`
|
Loading…
Reference in a new issue