From f9393152fd956c4917e1dd2128514254be93cc72 Mon Sep 17 00:00:00 2001 From: Jeff Clement Date: Fri, 15 Nov 2024 15:49:33 -0700 Subject: [PATCH] ackee++ --- ackee_cloudflare/.env | 10 ++++++++++ ackee_cloudflare/README.md | 12 ++++++++++++ ackee_cloudflare/docker-compose.yml | 27 +++++++++++++++++++++++++++ hedgedoc_cloudflare/README.md | 2 +- 4 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 ackee_cloudflare/.env create mode 100644 ackee_cloudflare/README.md create mode 100644 ackee_cloudflare/docker-compose.yml diff --git a/ackee_cloudflare/.env b/ackee_cloudflare/.env new file mode 100644 index 0000000..088be76 --- /dev/null +++ b/ackee_cloudflare/.env @@ -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 \ No newline at end of file diff --git a/ackee_cloudflare/README.md b/ackee_cloudflare/README.md new file mode 100644 index 0000000..078d736 --- /dev/null +++ b/ackee_cloudflare/README.md @@ -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` \ No newline at end of file diff --git a/ackee_cloudflare/docker-compose.yml b/ackee_cloudflare/docker-compose.yml new file mode 100644 index 0000000..71df3b8 --- /dev/null +++ b/ackee_cloudflare/docker-compose.yml @@ -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 \ No newline at end of file diff --git a/hedgedoc_cloudflare/README.md b/hedgedoc_cloudflare/README.md index 40e36b6..7fdc3c1 100644 --- a/hedgedoc_cloudflare/README.md +++ b/hedgedoc_cloudflare/README.md @@ -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` \ No newline at end of file