Skip to content

Instantly share code, notes, and snippets.

@pingkunga
Last active March 31, 2025 11:10
Show Gist options
  • Save pingkunga/1f32917463d441d80cd430eae8aa8c49 to your computer and use it in GitHub Desktop.
Save pingkunga/1f32917463d441d80cd430eae8aa8c49 to your computer and use it in GitHub Desktop.
kavita docker compose
services:
kavita:
image: jvmilazz0/kavita:latest # Using the stable branch from the official dockerhub repo.
container_name: kavita
volumes:
- ./data/manga:/manga
- ./data/comics:/comics
- ./data/books:/books
- ./config:/kavita/config # /kavita/config must not be changed
environment:
- TZ=Asia/Bangkok
- DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
ports:
- "15000:5000"
restart: unless-stopped
deploy:
resources:
limits:
cpus: "0.5" # Comment this line, if use on Synology NAS, NanoCPUs can not be set
memory: "512M"
reservations:
cpus: "0.25" # Comment this line, if use on Synology NAS, NanoCPUs can not be set
memory: "256M"
# Full Error
# - NanoCPUs can not be set, as your kernel does not support CPU cfs period/quota or the cgroup is not mounted
# - Ref: https://www.synoforum.com/threads/cpu-limiting.9473/ /
# https://www.reddit.com/r/synology/comments/12v56rv/docker_problem_after_creating_second_volume_on_m2/
# https://docs.ultra.cc/applications/kavita
# https://wiki.kavitareader.com/guides/scanner/pdf/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment