This commit is contained in:
Jeff Clement 2024-11-15 15:49:33 -07:00
parent 5e5cea9dd6
commit f9393152fd
Signed by: jeff
GPG key ID: 3BCB43A3F0E1D7DA
4 changed files with 50 additions and 1 deletions

10
ackee_cloudflare/.env Normal file
View 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

View 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`

View 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

View file

@ -10,5 +10,5 @@ Requires:
Steps:
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`