calibre-web/compose.yml

52 lines
1.2 KiB
YAML
Raw Normal View History

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