Publish: 2020-06-21 | Modify: 2020-06-21
Zdir is a directory listing program developed using PHP. It does not require a database, is easy to install, and user-friendly. It also supports Docker deployment.
If you haven't installed Docker on your QNAP NAS, please refer to the previous article "Installing Docker Containers and Setting Docker Image Sources on QNAP NAS".
Open the Container Station suite (Docker) on QTS, click on the create button, and search for Zdir. Find the Docker image provided by xiaoz and install it. Note: Make sure to use the Docker image provided by xiaoz, as it supports the latest version of Zdir.
Select the "latest" version and proceed.
Since it is not an official Docker image, there will be a warning message. Click on "I Understand" and confirm.
Creating the Container
Next, you will see the steps to create the container. Fill in the following information:
zdir
(or you can define your own name)/usr/sbin/run.sh
Network Settings
Open Advanced Settings - Network and configure it as shown in the following image.
1080
port is the access port, you can set your own access port as needed.80
.TCP
as the communication protocol.Shared Folders
Open Advanced Settings - Shared Folders - Mount Shared Folders on This Host - Add New.
/data/wwwroot/default
, make sure to use /data/wwwroot/default
and do not change it.After completing the network and shared folder settings, click on "Create".
Wait for about 1 minute (depending on your network), then access http://NASIP:1080
to open Zdir, as shown in the following image.
Note: The default username is zdir
and the password is xiaoz.me
. You can modify them in the config.php
file.
Scan the QR code below. Donations of more than 30 CNY
will receive the donor version, which includes first-time technical support and ad removal. After donating, please contact me on QQ:337003006 to get the donor version.
For more usage instructions, please refer to the Zdir documentation: https://www.yuque.com/helloz/zdir. Feel free to leave a comment if you have any questions.
I come from China and I am a freelancer. I specialize in Linux operations, PHP, Golang, and front-end development. I have developed open-source projects such as Zdir, ImgURL, CCAA, and OneNav.