Last active
May 10, 2022 10:05
-
-
Save petersem/35b60ecd146483966dd257a531c8ad97 to your computer and use it in GitHub Desktop.
Docker - Calibre-web
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.yaml and .env | |
################ .env | |
PUID=1026 | |
PGID=101 | |
DOCKER_PATH=/volume1/docker | |
MEDIA_PATH=/volume1/media | |
TZ=Australia/Brisbane | |
################ compose.yaml | |
# Extension fields | |
x-env: &common_env | |
- PUID=$PUID | |
- PGID=$PGID | |
- TZ=$TZ | |
services: | |
calibre-web: | |
image: linuxserver/calibre-web | |
container_name: calibre-web | |
environment: | |
<<: *common_env | |
- DOCKER_MODS=linuxserver/calibre-web:calibre | |
volumes: | |
- $DOCKER_PATH/calibre-web/config:/config | |
- $MEDIA_PATH/ebooks:/books:rw | |
ports: | |
- 8083:8083 | |
healthcheck: | |
test: curl -fSs http://127.0.0.1:8083 || exit 1 | |
start_period: 500s | |
timeout: 10s | |
interval: 30s | |
retries: 3 | |
depends_on: | |
calibre: | |
condition: service_healthy | |
restart: unless-stopped | |
labels: | |
autoheal: 'true' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment