Introduction
Setting this up to make reading manga easier on my local network.
IP Settings
My router runs OpenWRT.
Router Setup
Go to Network - IP/MAC Binding and bind a static IP to the computer.
Fedora Setup
Since the static IP I want is different from the auto-assigned one (wired connection), I need to change it manually.
In Network - Settings, under the Identity tab, add the MAC Address. Change IPv4 to Manual. Set the addresses as IP, 255.255.255.0, Router IP. For DNS, add the Router IP. I kept the automatic toggle checked.
Local DNS
While IP access works, a domain name is much easier to remember.
On the router, go to Network - Hostnames. Enter your desired domain in the Hostname field and the computer’s IP in the IP Address field.
Installing Docker
I went with Docker Desktop for the GUI.
Set up the Repository
| |
| |
Download the RPM Package
Download it from the Official Website .
Once downloaded, double-click to install.
Installing Komga
Docker Configuration
File Sharing
In Docker Desktop, go to Settings - Resources - File sharing and add the path to your manga.
Note: If the shared directory is missing (not mounted) on the next boot, Docker will fail to start.
Network Settings
Not sure if this is strictly necessary, but I set the subnet to match my own in Settings - Resources - Network.
Installation via CLI
Run this directly in the shell:
| |
-p: Maps the host port (left) to the container port (right).-v: Volume mapping. Maps a host directory (/home/yexca/komga/config) to the container (/config).
Note: You cannot map hidden files (files starting with .) from the host.
Installation via GUI
After the previous step, gotson/komga will appear in the Images tab of Docker Desktop. Click run and configure:
- First line: Name.
- Ports: Host port mapping. Set to 80 if you want to access it directly via the domain name.
- Volumes: Path mappings.
- Environment variables: Not needed for this setup.
Verify Running Status
Check the status with:
| |
Firewall Configuration
Open the port:
| |
Reload the configuration:
| |
Check if the port is open:
| |
You might need to add the HTTP service:
| |
If you hate CLI, just use the GUI—it’s probably faster anyway:
| |
References
Install Docker Desktop on Fedora - Docker Documentation
fedora 28 , firewalld 防火墙控制,firewall-cmd 管理防火墙规则 - xuyaowen - 博客园