mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-13 12:08:53 +00:00
29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
---
|
|
- name: Speedtest-Tracker Directory
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- "{{ speedtest_data_directory }}/config"
|
|
|
|
- name: Speedtest-Tracker Docker Container
|
|
docker_container:
|
|
name: speedtest_tracker
|
|
image: henrywhitaker3/speedtest-tracker:latest
|
|
pull: true
|
|
volumes:
|
|
- "{{ speedtest_data_directory }}/config:/config:rw"
|
|
ports:
|
|
- "{{ speedtest_tracker_port }}:80"
|
|
env:
|
|
OOKLA_EULA_GDPR: "true"
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
restart_policy: unless-stopped
|
|
memory: "1g"
|
|
labels:
|
|
traefik.enable: "{{ speedtest_tracker_available_externally }}"
|
|
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"
|