|
| 1 | +## Installing Speedtest-Tracker in a QNAP NAS using Container Station. |
| 2 | + |
| 3 | +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. |
| 4 | + |
| 5 | +1. **Open Container Station**, select "Applications" from the left-hand navigation menu. |
| 6 | +2. **Press the Create Button**. |
| 7 | +3. **Provide a name** for your Application; something like "speedtest-tracker" would work. |
| 8 | +4. **Paste the following YAML code** into the text box: |
| 9 | + |
| 10 | +```yaml |
| 11 | +version: '3.3' |
| 12 | +services: |
| 13 | + speedtest-tracker: |
| 14 | + container_name: speedtest-tracker |
| 15 | + ports: |
| 16 | + - '8080:80' |
| 17 | + - '8443:443' |
| 18 | + environment: |
| 19 | + - PUID=1000 |
| 20 | + - PGID=1000 |
| 21 | + - DB_CONNECTION=mysql |
| 22 | + - DB_HOST=192.168.1.4 |
| 23 | + - DB_PORT=3306 |
| 24 | + - DB_DATABASE=speedtest_tracker |
| 25 | + - DB_USERNAME=speedy |
| 26 | + - DB_PASSWORD=password |
| 27 | + volumes: |
| 28 | + - speedtest-app:/config |
| 29 | + - '/speedtest-tracker:/etc/ssl/web' |
| 30 | + image: 'ghcr.io/alexjustesen/speedtest-tracker:latest' |
| 31 | + networks: |
| 32 | + qnet-network: |
| 33 | + ipv4_address: 192.168.1.3 |
| 34 | + restart: unless-stopped |
| 35 | + depends_on: |
| 36 | + - db |
| 37 | + db: |
| 38 | + image: mariadb:latest |
| 39 | + networks: |
| 40 | + qnet-network: |
| 41 | + ipv4_address: 192.168.1.4 |
| 42 | + restart: always |
| 43 | + environment: |
| 44 | + - MARIADB_DATABASE=speedtest_tracker |
| 45 | + - MARIADB_USER=speedy |
| 46 | + - MARIADB_PASSWORD=password |
| 47 | + - MARIADB_RANDOM_ROOT_PASSWORD=true |
| 48 | + volumes: |
| 49 | + - speedtest-db:/var/lib/mysql |
| 50 | + |
| 51 | +networks: |
| 52 | + qnet-network: |
| 53 | + driver_opts: |
| 54 | + iface: eth0 |
| 55 | + driver: qnet |
| 56 | + ipam: |
| 57 | + driver: qnet |
| 58 | + options: |
| 59 | + iface: eth0 |
| 60 | + config: |
| 61 | + - subnet: 192.168.1.0/24 |
| 62 | + gateway: 192.168.1.1 |
| 63 | + |
| 64 | +volumes: |
| 65 | + speedtest-app: |
| 66 | + speedtest-db: |
| 67 | +``` |
| 68 | +
|
| 69 | +5. **Edit the above code** for your needs, focusing on items such as IP addresses and DB credentials. |
| 70 | +6. **Press "Validate"**. |
| 71 | +7. **Press "Create"**. |
| 72 | +
|
| 73 | +Upon creation completion, you will have an application within Container Station named "speedtest-tracker" that features 2 containers within it, one for your MariaDB database and another one for the actual speed-test tracker container, that you can start up and access. |
| 74 | +
|
| 75 | +You can now access Speedtest-Tracker via `http://YOUR_IP_ADDRESS` and use the default credentials of: |
| 76 | + |
| 77 | + |
| 78 | +- **Password**: password |
0 commit comments