initial commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# Calibre-Web
|
||||
|
||||
Deploy Calibre-Web ebook server using Docker Compose.
|
||||
|
||||
## Description
|
||||
|
||||
Calibre-Web is a web app providing a clean interface for browsing, reading and downloading eBooks from a Calibre database.
|
||||
|
||||
## Variables
|
||||
|
||||
### Required
|
||||
|
||||
| Variable | Description |
|
||||
|----------|-------------|
|
||||
| `calibre_web_library_path` | Path to existing Calibre library directory |
|
||||
|
||||
### Optional
|
||||
|
||||
| Variable | Default | Description |
|
||||
|----------|---------|-------------|
|
||||
| `calibre_web_http_port` | `8083` | Web interface port |
|
||||
| `calibre_web_config_path` | `{{ app_dir }}/config` | Configuration storage |
|
||||
| `calibre_web_container_version` | `latest` | Calibre-Web Docker image tag |
|
||||
| `calibre_web_uid` | `{{ app_uid }}` | User ID for file permissions |
|
||||
| `calibre_web_gid` | `{{ app_gid }}` | Group ID for file permissions |
|
||||
| `calibre_web_timezone` | `{{ app_timezone }}` | Container timezone |
|
||||
| `calibre_web_docker_mods` | `linuxserver/mods:universal-calibre` | Adds ebook conversion capability (x86-64 only) |
|
||||
| `calibre_web_oauth_relax` | `1` | Allows Google OAuth to work. Set to `0` to disable |
|
||||
|
||||
## Example
|
||||
|
||||
```yaml
|
||||
- role: patrickj.docker_apps.calibre-web
|
||||
vars:
|
||||
calibre_web_library_path: /storage/ebooks/calibre-library
|
||||
```
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
app_name: calibre-web
|
||||
|
||||
# Container configuration
|
||||
calibre_web_container_name: "{{ app_name | default('calibre-web') }}"
|
||||
calibre_web_container_version: latest
|
||||
calibre_web_restart_policy: "{{ app_restart_policy }}"
|
||||
calibre_web_uid: "{{ app_uid }}"
|
||||
calibre_web_gid: "{{ app_gid }}"
|
||||
|
||||
# Network configuration
|
||||
calibre_web_http_port: 8083
|
||||
|
||||
# Volume paths
|
||||
calibre_web_config_path: "{{ app_dir }}/config"
|
||||
calibre_web_library_path: "{{ app_dir }}/library"
|
||||
|
||||
# App-specific configuration
|
||||
calibre_web_timezone: "{{ app_timezone | default('Etc/UTC') }}"
|
||||
calibre_web_docker_mods: "linuxserver/mods:universal-calibre"
|
||||
calibre_web_oauth_relax: "1"
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: Patrick Jaroszewski
|
||||
description: Deploy Calibre-Web with Docker Compose
|
||||
license: MIT
|
||||
|
||||
dependencies:
|
||||
- role: patrickj.docker_apps.docker_compose_app
|
||||
vars:
|
||||
app_role_name: calibre-web
|
||||
app_subdirectories:
|
||||
- "{{ calibre_web_config_path }}"
|
||||
- "{{ calibre_web_books_path }}"
|
||||
app_backup_subdirectories:
|
||||
- "{{ calibre_web_config_path }}"
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
services:
|
||||
calibre-web:
|
||||
image: "lscr.io/linuxserver/calibre-web:{{ calibre_web_container_version }}"
|
||||
container_name: "{{ calibre_web_container_name }}"
|
||||
restart: "{{ calibre_web_restart_policy }}"
|
||||
ports:
|
||||
- "{{ calibre_web_http_port }}:8083"
|
||||
environment:
|
||||
- PUID={{ calibre_web_uid }}
|
||||
- PGID={{ calibre_web_gid }}
|
||||
- TZ={{ calibre_web_timezone }}
|
||||
- DOCKER_MODS={{ calibre_web_docker_mods }}
|
||||
- OAUTHLIB_RELAX_TOKEN_SCOPE={{ calibre_web_oauth_relax }}
|
||||
volumes:
|
||||
- "{{ calibre_web_config_path }}:/config"
|
||||
- "{{ calibre_web_library_path }}:/books"
|
||||
Reference in New Issue
Block a user