calibre-web/compose.yml

52 lines
1.2 KiB
YAML

---
version: "3.8"
services:
app:
image: "lscr.io/linuxserver/calibre-web:0.6.14"
environment:
- DOCKER_MODS
- OAUTHLIB_RELAX_TOKEN_SCOPE
- PGID=1000
- PUID=1000
- TZ
- FLASK_DEBUG=${DEBUG}
volumes:
- config:/config
- books:/books
networks:
- proxy
configs:
- source: app_entrypoint
target: /config/custom-cont-init.d/entrypoint.sh
mode: 0555
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8083"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8083"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
networks:
proxy:
external: true
volumes:
books:
config:
configs:
app_entrypoint:
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang