Skip to content

Commit

Permalink
feat: add duplicati and cloudflare tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
rickstaa committed Oct 23, 2023
1 parent 9671a25 commit 1afa108
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The `docker-compose` file orchestrates ~~four~~three containers, each serving a
- ~~**adsbx_exporter**: A [custom ADSBx exporter](prometheus/exporters/adsbx_exporter/main.go) container dedicated to collecting adsbx API data. Accessible on port `19100`.~~ - No longer works due to recent [adsb-x](https://adsbexchange.com/) api changes.
- **Grafana**: A [Grafana](https://grafana.com/) container used for displaying tracked data. Accessible on port `3000`.

Additionally, this repository contains a [Portainer container](portainer/README.md) that can be used to facilitate the management of the other containers.
Furthermore, within this repository, you'll discover a [Portainer container](portainer/README.md) designed to simplify the management of other containers. Additionally, there's a dedicated [Duplicati container](duplicati/README.md) for efficiently backing up the Prometheus database. Lastly, a [Cloudflare Dockerfile](cloudflare_tunnel/README.md) facilitates the initiation of a Cloudflare tunnel, ensuring a secure way to share the ADS-B dashboard with the external world.

## Contributing

Expand Down
1 change: 1 addition & 0 deletions cloudflare_tunnel/.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CLOUDFLARE_TOKEN=
7 changes: 7 additions & 0 deletions cloudflare_tunnel/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Cloudflare tunnel

This folder contains a docker-compose file for creating a [Cloudflare tunnel](https://www.cloudflare.com/en-gb/products/tunnel/). This tunnel is used to safely share the ads-b Grafana dashboard with the outside world. Please change the docker network containing the service you exposed in the Zero-Trusts interface.

## Installation

First, install [Docker](https://docs.docker.com/get-docker/). Then, add the `CLOUDFLARE_TOKEN` of your Cloudflare tunnel to the `.env` file. Lastly, run the `docker compose up -d` command to start the Cloudflare container.
14 changes: 14 additions & 0 deletions cloudflare_tunnel/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3.8"

services:
cloudflare-tunnel:
container_name: cloudflare-tunnel
image: "cloudflare/cloudflared:latest"
command: "tunnel --no-autoupdate run --token $CLOUDFLARE_TOKEN"
restart: unless-stopped
networks:
- adsb-dashboards # The container network to wich the tunnel will be attached.

networks:
adsb-dashboards:
external: true
13 changes: 0 additions & 13 deletions cron/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions cron/prom_snapshot.sh

This file was deleted.

7 changes: 7 additions & 0 deletions duplicati/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Duplicati: Secure Backup Solution

Duplicati is a free, cross-platform backup software designed to store encrypted backups online for Windows, macOS, and Linux. Explore its features at [Duplicati](https://www.duplicati.com/). Utilize this software for automated backups of the Prometheus database, with the database mounted under the `/source/prometheus` path.

## Installation

To get started, make sure you have [Docker](https://docs.docker.com/get-docker/) installed. Next, initiate the Duplicati container by building and starting it with the `docker compose up -d` command.
25 changes: 25 additions & 0 deletions duplicati/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: "3.8"

services:
duplicati:
image: lscr.io/linuxserver/duplicati:latest
container_name: duplicati
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Brussels
- CLI_ARGS= #optional
volumes:
- /opt/duplicati/config:/config
- duplicati_data:/backups
- prometheus_data:/source/prometheus
ports:
- 8200:8200
restart: unless-stopped

volumes:
duplicati_data:

networks:
default:
name: duplicati

0 comments on commit 1afa108

Please sign in to comment.