|
| 1 | +--- |
| 2 | +description: Install Speedtest Tracker in a QNAP NAS using Container Station. |
| 3 | +--- |
| 4 | + |
1 | 5 | # Using QNAP |
2 | 6 |
|
| 7 | +These instructions will run you through setting up the application on a QNAP NAS and will also create a MariaDB container for you to use as a database. |
| 8 | + |
| 9 | +1. Open **"Container Station"** and select **"Applications"** from the left-hand navigation menu. |
| 10 | +2. Press the **"Create"** button. |
| 11 | +3. Provide a name for the application. |
| 12 | +4. Paste the below Docker Compose code into the text box, this is a modification of the MariaDB Docker Compose [install ](installation.md)instructions. |
| 13 | +5. Click **"Validate"** to make sure there are no errors. |
| 14 | +6. Click **"Create"** to deploy the application. |
| 15 | + |
| 16 | +### Example Docker Compose |
| 17 | + |
| 18 | +{% hint style="info" %} |
| 19 | +A full list of released versions can be found [here](https://fleet.linuxserver.io/image?name=linuxserver/speedtest-tracker) |
| 20 | +{% endhint %} |
| 21 | + |
| 22 | +```yaml |
| 23 | +version: '3.4' |
| 24 | +services: |
| 25 | + speedtest-tracker: |
| 26 | + container_name: speedtest-tracker |
| 27 | + ports: |
| 28 | + - 8080:80 |
| 29 | + - 8443:443 |
| 30 | + environment: |
| 31 | + - PUID=1000 |
| 32 | + - PGID=1000 |
| 33 | + - APP_KEY= |
| 34 | + - DB_CONNECTION=mysql |
| 35 | + - DB_HOST=192.168.1.4 |
| 36 | + - DB_PORT=3306 |
| 37 | + - DB_DATABASE=speedtest_tracker |
| 38 | + - DB_USERNAME=speedy |
| 39 | + - DB_PASSWORD=password |
| 40 | + - SPEEDTEST_SCHEDULE= |
| 41 | + - SPEEDTEST_SERVERS= |
| 42 | + - PRUNE_RESULTS_OLDER_THAN= |
| 43 | + - CHART_DATETIME_FORMAT= |
| 44 | + - DATETIME_FORMAT= |
| 45 | + - APP_TIMEZONE= |
| 46 | + volumes: |
| 47 | + - /path/to-data:/config |
| 48 | + - /path/to-custom-ssl-keys:/config/keys |
| 49 | + image: lscr.io/linuxserver/speedtest-tracker:latest |
| 50 | + networks: |
| 51 | + qnet-network: |
| 52 | + ipv4_address: 192.168.1.3 |
| 53 | + restart: unless-stopped |
| 54 | + depends_on: |
| 55 | + - db |
| 56 | + db: |
| 57 | + image: mariadb:10 |
| 58 | + networks: |
| 59 | + qnet-network: |
| 60 | + ipv4_address: 192.168.1.4 |
| 61 | + restart: always |
| 62 | + environment: |
| 63 | + - MARIADB_DATABASE=speedtest_tracker |
| 64 | + - MARIADB_USER=speedy |
| 65 | + - MARIADB_PASSWORD=password |
| 66 | + - MARIADB_RANDOM_ROOT_PASSWORD=true |
| 67 | + volumes: |
| 68 | + - speedtest-db:/var/lib/mysql |
| 69 | + |
| 70 | +networks: |
| 71 | + qnet-network: |
| 72 | + driver_opts: |
| 73 | + iface: eth0 |
| 74 | + driver: qnet |
| 75 | + ipam: |
| 76 | + driver: qnet |
| 77 | + options: |
| 78 | + iface: eth0 |
| 79 | + config: |
| 80 | + - subnet: 192.168.1.0/24 |
| 81 | + gateway: 192.168.1.1 |
| 82 | + |
| 83 | +volumes: |
| 84 | + speedtest-db: |
| 85 | +``` |
0 commit comments