2020-05-04 17:33:17 +00:00
|
|
|
---
|
|
|
|
- name: Speedtest-Tracker Directory
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- "{{ speedtest_data_directory }}/config"
|
|
|
|
|
|
|
|
- name: Speedtest-Tracker Docker Container
|
|
|
|
docker_container:
|
2022-05-30 18:41:56 +00:00
|
|
|
name: speedtest_tracker
|
2020-05-04 17:33:17 +00:00
|
|
|
image: henrywhitaker3/speedtest-tracker:latest
|
|
|
|
pull: true
|
|
|
|
volumes:
|
|
|
|
- "{{ speedtest_data_directory }}/config:/config:rw"
|
|
|
|
ports:
|
2022-05-30 18:34:09 +00:00
|
|
|
- "{{ speedtest_tracker_port }}:80"
|
2020-05-04 17:33:17 +00:00
|
|
|
env:
|
2020-07-17 11:57:47 +00:00
|
|
|
OOKLA_EULA_GDPR: "true"
|
2020-05-04 17:33:17 +00:00
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
|
|
restart_policy: unless-stopped
|
2022-05-30 18:34:09 +00:00
|
|
|
memory: "1g"
|
2020-05-04 17:33:17 +00:00
|
|
|
labels:
|
2022-07-23 15:40:36 +00:00
|
|
|
traefik.enable: "{{ speedtest_tracker_available_externally | string }}"
|
2022-05-30 18:34:09 +00:00
|
|
|
traefik.http.routers.speedtest_tracker.rule: "Host(`{{ speedtest_tracker_hostname }}.{{ ansible_nas_domain }}`)"
|
|
|
|
traefik.http.routers.speedtest_tracker.tls.certresolver: "letsencrypt"
|
|
|
|
traefik.http.routers.speedtest_tracker.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.routers.speedtest_tracker.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.services.speedtest_tracker.loadbalancer.server.port: "80"
|