mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-26 02:05:05 +00:00
Merge branch 'speedtest---add' of https://github.com/bcurran3/ansible-nas into bcurran3-speedtest---add
* 'speedtest---add' of https://github.com/bcurran3/ansible-nas: Update speedtest.yml delete unused environment variable add container link Speedtest add Speedtest add Speedtest add Speedtest add Speedtest add Speedtest add Speedtest add
This commit is contained in:
commit
784ea83370
6 changed files with 54 additions and 1 deletions
|
@ -74,6 +74,7 @@ If you have a spare domain name you can configure applications to be accessible
|
|||
* [Serposcope](https://serposcope.serphacker.com/en/) - tracker to monitor website ranking
|
||||
* [Sickchill](https://sickchill.github.io/) - for managing TV episodes
|
||||
* [Sonarr](https://sonarr.tv/) - for downloading and managing TV episodes
|
||||
* [Speedtest-Tracker](https://github.com/henrywhitaker3/Speedtest-Tracker) - Continuously track your internet speed
|
||||
* [Syncthing](https://syncthing.net/) - sync directories with another device
|
||||
* [Tautulli](http://tautulli.com/) - Monitor Your Plex Media Server
|
||||
* [Telegraf](https://github.com/influxdata/telegraf) - Metrics collection agent
|
||||
|
|
15
docs/applications/speedtest.md
Normal file
15
docs/applications/speedtest.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
# Speedtest-Tracker
|
||||
|
||||
Homepage: [https://github.com/henrywhitaker3/Speedtest-Tracker](https://github.com/henrywhitaker3/Speedtest-Tracker)
|
||||
Docker Container: [https://hub.docker.com/r/henrywhitaker3/speedtest-tracker](https://hub.docker.com/r/henrywhitaker3/speedtest-tracker)
|
||||
|
||||
Continuously track your internet speed
|
||||
|
||||
## Usage
|
||||
|
||||
Set `speedtest_enabled: true` in your `inventories/<your_inventory>/nas.yml` file.
|
||||
|
||||
If you want to access Speedtest-Tracker externally, don't forget to set `speedtest_available_externally: "true"` in your `inventories/<your_inventory>/nas.yml` file.
|
||||
|
||||
The Speedtest-Tracker interface can be found at http://ansible_nas_host_or_ip:8765.
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
By default, applications can be found on the ports listed below.
|
||||
|
||||
# Application Ports
|
||||
|
||||
By default, applications can be found on the ports listed below.
|
||||
|
||||
| Application | Port | Mode | Notes |
|
||||
|-----------------|---------|---------|----------------|
|
||||
| Airsonic | 4040 | Bridge | HTTP |
|
||||
|
@ -76,6 +80,7 @@ By default, applications can be found on the ports listed below.
|
|||
| Sabnzbd | 18080 | Bridge | HTTP |
|
||||
| Sickchill | 8081 | Bridge | HTTP |
|
||||
| Sonarr | 8989 | Bridge | HTTP |
|
||||
| Speedtest-Trk | 8765 | HTTP | |
|
||||
| Syncthing admin | 8384 | Host | HTTP |
|
||||
| Syncthing P2P | 22000 | Host | |
|
||||
| Tautulli | 8185 | Bridge | HTTP |
|
||||
|
|
|
@ -240,7 +240,6 @@ joomla_available_externally: "false"
|
|||
joomla_database_password: top_secret
|
||||
joomla_port: "8181"
|
||||
|
||||
###
|
||||
###
|
||||
### OpenVPN
|
||||
###
|
||||
|
|
5
nas.yml
5
nas.yml
|
@ -288,6 +288,11 @@
|
|||
- sonarr
|
||||
when: (sonarr_enabled | default(False))
|
||||
|
||||
- role: speedtest-tracker
|
||||
tags:
|
||||
- speedtest-tracker
|
||||
when: (speedtest-tracker_enabled | default(False))
|
||||
|
||||
- role: syncthing
|
||||
tags:
|
||||
- syncthing
|
||||
|
|
28
roles/speedtest-tracker/tasks/main.yml
Normal file
28
roles/speedtest-tracker/tasks/main.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
|
||||
---
|
||||
- name: Speedtest-Tracker Directory
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- "{{ speedtest_data_directory }}/config"
|
||||
|
||||
- name: Speedtest-Tracker Docker Container
|
||||
docker_container:
|
||||
name: speedtest
|
||||
image: henrywhitaker3/speedtest-tracker:latest
|
||||
pull: true
|
||||
volumes:
|
||||
- "{{ speedtest_data_directory }}/config:/config:rw"
|
||||
ports:
|
||||
- "{{ speedtest_port_http }}:80"
|
||||
env:
|
||||
OOKLA_EULA_GDPR: "true"
|
||||
TZ: "{{ ansible_nas_timezone }}"
|
||||
restart_policy: unless-stopped
|
||||
labels:
|
||||
traefik.backend: "speedtest"
|
||||
traefik.frontend.rule: "Host:speedtest.{{ ansible_nas_domain }}"
|
||||
traefik.enable: "{{ speedtest_available_externally }}"
|
||||
traefik.port: "80"
|
||||
memory: 1g
|
Loading…
Reference in a new issue