Komga Comic Server
Komga media server for comics and manga with OPDS support.
Overview
Komga is a free and open-source media server specifically designed for comics and manga, developed by Gotson to address the lack of quality comic book management solutions. Built with Spring Boot and Vue.js, Komga provides a modern web interface for organizing, reading, and sharing digital comic collections while supporting industry-standard formats like CBZ, CBR, PDF, and EPUB. The server automatically scans libraries, extracts metadata, and generates thumbnails to create a Netflix-like browsing experience for comic enthusiasts.
This Docker deployment creates a self-contained comic server that handles everything from library scanning to user management and reading progress synchronization. Komga's architecture separates the web interface from the underlying file system, allowing multiple users to access the same comic collection with individual reading progress, bookmarks, and preferences. The server includes built-in OPDS (Open Publication Distribution System) support, enabling integration with dedicated e-reader applications and comic reading clients.
This setup is ideal for comic collectors, families sharing digital libraries, and anyone wanting to centralize their comic reading experience across multiple devices. Komga's lightweight resource requirements make it perfect for home servers, NAS devices, or cloud deployments, while its comprehensive API enables integration with mobile apps like Tachiyomi for Android and various OPDS-compatible readers for a complete digital comic ecosystem.
Key Features
- Automatic comic library scanning with metadata extraction from CBZ, CBR, PDF, and EPUB files
- Multi-user support with individual reading progress, bookmarks, and collection management
- OPDS v1.2 and v2.0 feeds for compatibility with dedicated comic reader applications
- Advanced library organization with series grouping, reading list creation, and collection filtering
- Built-in webreader with page-by-page and double-page reading modes plus zoom controls
- REST API for integration with third-party applications like Tachiyomi manga reader
- Duplicate detection and file integrity checking to maintain clean comic libraries
- User access controls with library-level permissions and admin management tools
Common Use Cases
- 1Home media server for families wanting to share and organize large comic book collections
- 2Digital comic library management for collectors transitioning from physical to digital formats
- 3Remote comic access setup for reading collections while traveling or away from home
- 4Multi-device comic synchronization keeping reading progress consistent across phones, tablets, and computers
- 5OPDS server deployment for integration with dedicated e-reader devices and comic reading apps
- 6Small library or community center providing digital comic access to patrons
- 7Backup and preservation system for valuable or rare comic collections
Prerequisites
- Docker and Docker Compose installed on host system
- Minimum 512MB RAM available for Komga container operation
- Port 25600 available and not in use by other services
- Storage space for both comic files and generated thumbnails (expect 10-20% overhead)
- Comic files organized in folders and in supported formats (CBZ, CBR, PDF, EPUB)
- Basic understanding of file permissions for Docker volume mounting
For development & testing. Review security settings, change default credentials, and test thoroughly before production use. See Terms
docker-compose.yml
docker-compose.yml
1services: 2 komga: 3 image: gotson/komga:latest4 container_name: komga5 environment: 6 - TZ=${TZ}7 volumes: 8 - komga_config:/config9 - /path/to/comics:/data10 ports: 11 - "25600:25600"12 restart: unless-stopped13 networks: 14 - komga-network1516volumes: 17 komga_config: 1819networks: 20 komga-network: 21 driver: bridge.env Template
.env
1# Komga2TZ=UTCUsage Notes
- 1Web UI at http://localhost:25600
- 2Create admin on first visit
- 3Supports CBZ, CBR, PDF, EPUB
- 4OPDS feed for e-readers
- 5Tachiyomi extension available
Quick Start
terminal
1# 1. Create the compose file2cat > docker-compose.yml << 'EOF'3services:4 komga:5 image: gotson/komga:latest6 container_name: komga7 environment:8 - TZ=${TZ}9 volumes:10 - komga_config:/config11 - /path/to/comics:/data12 ports:13 - "25600:25600"14 restart: unless-stopped15 networks:16 - komga-network1718volumes:19 komga_config:2021networks:22 komga-network:23 driver: bridge24EOF2526# 2. Create the .env file27cat > .env << 'EOF'28# Komga29TZ=UTC30EOF3132# 3. Start the services33docker compose up -d3435# 4. View logs36docker compose logs -fOne-Liner
Run this command to download and set up the recipe in one step:
terminal
1curl -fsSL https://docker.recipes/api/recipes/komga-comics/run | bashTroubleshooting
- Comics not appearing in library: Check file permissions on mounted volume and ensure Komga container can read comic files
- Thumbnails not generating: Verify sufficient disk space in config volume and restart container to rebuild thumbnail cache
- OPDS feed not working in reader apps: Confirm port 25600 is accessible and use full URL format http://server-ip:25600/opds/v1.2/catalog
- Reading progress not syncing: Clear browser cache and ensure user is properly logged in, check for multiple browser sessions
- High memory usage during scanning: Limit concurrent scanning in settings or increase container memory allocation for large libraries
- Tachiyomi extension connection failed: Verify server URL format includes http:// prefix and port number, check network connectivity
Community Notes
Loading...
Loading notes...
Download Recipe Kit
Get all files in a ready-to-deploy package
Includes docker-compose.yml, .env template, README, and license
Ad Space
Shortcuts: C CopyF FavoriteD Download