How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Introduction

This article mainly introduces how to use Docker to locally deploy the Talebook e-book management system on the Orange Pi Zero3 with CasaOS light NAS system, and combine it with cpolar for remote management of local books and online reading. No public IP is required, and there is no need to set up the router so complicated.

I previously shared how I flashed my Orange Pi Zero3 with the CasaOS light NAS system and installed the cpolar internal network penetration tool, allowing me to access the files stored in my Orange Pi at home anytime while I’m out. Such a small host, which is always connected to power and the internet, is very suitable for deploying some frequently used services, such as reading novels, listening to music, watching videos, backing up photos, etc.

For example, to read novels, we can use Docker to deploy the Talebook e-book management system in CasaOS. This is an open-source and free project, with a front-end interface built on Vue.js, providing a smooth user experience and responsive layout that adapts to various device screen sizes.

It allows users to upload, import, and manage their e-books. It supports various e-book formats, such as EPUB, MOBI, PDF, etc. Users can edit book metadata, add covers, and categorize and group books. In addition to reading local books, Talebook provides an online reading feature, allowing users to enjoy high-quality reading experiences directly in the browser without downloading.

Talebook offers a Dockerized deployment solution, making installation and upgrades extremely simple. Next, let’s share the specific installation process and a brief usage guide.

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

1. Add Image Source

The environment we are demonstrating is the Orange Pi Zero3 small host that has already flashed CasaOS.

First, enter the terminal and log in with the root account password.

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

After entering the terminal, execute the command below:

nano /etc/docker/daemon.json

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

In the editor, enter the new image source address:

{
"registry-mirrors": [
 "https://docker.m.daocloud.io",
 "https://docker.1panel.live"
]
}

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Then press Ctrl+X to save this image source, exit the editor, and execute the command below to restart the docker service:

systemctl restart docker

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

2. Install Talebook

Enter the casaos terminal again and execute the command below:

docker run -d --name talebook -p 8080:80 -v /data/talebook:/data talebook/talebook

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

After the installation is complete, close the terminal and return to the main interface:

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

You can see that the Talebook service is in a waiting state. Enter the Orange Pi’s IP plus port 8080 in the browser to access the web installation interface of the talebook system locally:

PS: The IP of the Orange Pi small host can be found in the router, named orangepizero3.

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

After setting the password and email, you can enter the main interface of the talebook system:

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

After clicking the login button in the upper right corner, you can see the management options under the home section in the left menu, where you can import books and manage books and users.

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

3. Brief Usage Introduction

Click on System Settings, and we can set up basic information for this book site, user settings, book tag classification, internet book information sources, and other related information and functions.

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Click on User Management, and we can set the permissions for various users logging into this book system:

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Click on Import Books, you can see that you need to first put the books in the /data/books/imports/ directory.

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

So we need to return to the CasaOS interface of the Orange Pi and click on file.

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Then enter the folder directory as shown above and copy the e-books that meet the format conditions to this directory in the Orange Pi:

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Click Upload, I demonstrated uploading three different formats of the same book, azw3, epub, mobi, to see if they can all be read normally.

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

First, we need to return to the talebook web management interface, click on Scan Books, and you can see the three books just uploaded. Click Import All Books to complete the import.

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

After completion, it will prompt that the processing is complete, and you can close it.

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Click on the Talebook homepage, and in all books, we can see the books just imported. Books with the same name but different formats will only display one, and will not be displayed repeatedly on the bookshelf. Only when clicking download will three different format download options be provided:

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

The reading interface has all the necessary functions but is very simple and clean:

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

4. Install Internal Network Penetration Tool

At this point, we have successfully deployed our own book management system on the local Orange Pi small host. Devices within the local area network can access the e-books happily by entering the IP address and port number mentioned above in the browser. However, if there is no public IP locally, then it can only be accessed within the local area network, which has certain limitations.

If you want to remotely browse the e-books stored in your home Orange Pi when you are out, or remotely manage books and modify user permissions, what should you do? It’s simple, just install a cpolar internal network penetration tool on the local Orange Pi to configure the public address of the local service, and you can easily achieve remote access to the local services deployed on the internal network host. Next, I will introduce how to install cpolar internal network penetration.

CasaOS Install Cpolar Steps:

First, click the upper left corner to enter the terminal:

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Then enter the root account password to log in:

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Then execute the command below to install the cpolar internal network penetration tool:

curl -fsSL https://get.cpolar.sh | sudo sh

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Check the service status:

systemctl status cpolar

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

The above image shows that the cpolar internal network penetration service is running normally.

Then we use the CasaOS Orange Pi IP address plus 9200, open a new browser to log in to the cpolar management interface:

If you do not have an account, you can click to register for free to access the cpolar official website:https://www.cpolar.com

After entering the account password to log in to the cpolar web UI management interface, click on the tunnel management on the left dashboard – create tunnel:

Tunnel name: can be customized, be careful not to duplicate with existing tunnel names, in this case, I used: talebook

Protocol: http

Local Address: 8080

Domain Type: Random Domain

Region: Select China Top

Click Create

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

After the tunnel is created successfully, click on the status on the left – online tunnel list, to check the generated public access address. There are two access methods, one is http and the other is https, you can choose either to access in the browser.

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

In the browser address bar, enter the public address generated by cpolar, enter the account password, and you can see that you have successfully remotely accessed the talebook web management interface deployed in the local CasaOS Orange Pi!

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Summary

For convenience of demonstration, the public address generated by cpolar in the above operations is randomly generated. The advantage of this random address is that it establishes quickly and can be used immediately. However, its disadvantage is that the URL is randomly generated and hard to remember, and this address will change randomly within 24 hours, making it more suitable for temporary testing.

If you have a demand for long-term remote management of the talebook e-book system’s web management page in the local CasaOS Orange Pi, or remote access to other local services, and do not want to reconfigure the public address every day, while also wanting an address that looks good and is easy to remember, I recommend everyone to choose to configure a fixed public address for remote access.

5. Configure Fixed Public Address

Log in to the cpolar official website, click on the reserved section on the left, select to reserve a secondary subdomain, choose the region China VIP, set a secondary subdomain name, click reserve, after successful reservation, copy the reserved secondary subdomain name, here I filled in mytalebook, you can also customize your favorite name.

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

After successful reservation, copy the reserved secondary subdomain name:mytalebook, return to the cpolar web UI management interface, click on the tunnel management on the left dashboard – tunnel list, find the tunnel talebook to configure, and click edit on the right:

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Modify the tunnel information to configure the reserved secondary subdomain in the tunnel

  • Domain Type: Select Secondary Subdomain

  • Sub Domain: Fill in the reserved secondary subdomain: mytalebook

  • Region: Select China VIP

ClickUpdate(Note, click update once is enough, no need to submit repeatedly)

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

After the update is complete, open the online tunnel list, and you can see that the public address has changed, from a random address name to two fixed secondary subdomains (fixed public address):

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Finally, we can access the fixed public address in the browser using any of the fixed public addresses, and we can see that the access is successful. This way, a fixed and permanent public address is set up, allowing remote access to the talebook in the local CasaOS Orange Pi host to read e-books anytime and anywhere!

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

The above is the entire process of how to deploy the Talebook e-book management system on the CasaOS light NAS system Orange Pi Zero3, and install the cpolar internal network penetration tool to configure a fixed unchanging secondary domain public address, allowing remote viewing of e-books stored in the local Orange Pi anytime and anywhere. Thank you for watching, and feel free to leave comments for any questions.

If you need to reprint, please indicate the source!

How to Deploy Talebook E-Book Library on CasaOS Orange Pi Zero3 with Local Docker and Remote Access

Leave a Comment

×