calibre-web/compose.yml

66 lines
1.5 KiB
YAML

---
version: "3.8"
services:
web:
image: nginx:1.25.3
networks:
- proxy
- internal
environment:
- DOMAIN
- STACK_NAME
configs:
- source: nginx_config
target: /etc/nginx/nginx.conf
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "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}"
app:
image: "lscr.io/linuxserver/calibre-web:0.6.20"
environment:
- DOCKER_MODS
- FLASK_DEBUG=${DEBUG}
- OAUTHLIB_RELAX_TOKEN_SCOPE
- PGID=1000
- PUID=1000
- TZ
volumes:
- config:/config
- books:/books
networks:
- internal
configs:
- source: app_entrypoint
target: /config/custom-cont-init.d/entrypoint.sh
mode: 0555
deploy:
labels:
- "coop-cloud.${STACK_NAME}.version=0.1.2+0.6.20"
networks:
internal:
proxy:
external: true
volumes:
books:
config:
configs:
app_entrypoint:
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang
nginx_config:
name: ${STACK_NAME}_nginx_config_${NGINX_CONFIG_VERSION}
file: nginx.conf.tmpl
template_driver: golang