calibre-web/compose.yml

66 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2021-11-30 11:03:35 +00:00
---
version: "3.8"
services:
2021-12-08 14:50:30 +00:00
web:
2024-02-08 17:26:22 +00:00
image: nginx:1.25.3
2021-12-08 14:50:30 +00:00
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}"
2021-11-30 11:03:35 +00:00
app:
2024-02-08 17:26:22 +00:00
image: "lscr.io/linuxserver/calibre-web:0.6.20"
2021-11-30 11:35:37 +00:00
environment:
2021-11-30 11:43:13 +00:00
- DOCKER_MODS
2021-12-08 14:10:56 +00:00
- FLASK_DEBUG=${DEBUG}
2021-11-30 11:43:13 +00:00
- 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-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:
2021-12-08 14:50:30 +00:00
- internal
2021-11-30 12:36:17 +00:00
configs:
- source: app_entrypoint
target: /config/custom-cont-init.d/entrypoint.sh
mode: 0555
2021-12-27 18:11:24 +00:00
deploy:
labels:
2024-02-08 17:26:22 +00:00
- "coop-cloud.${STACK_NAME}.version=0.1.2+0.6.20"
2021-11-30 11:03:35 +00:00
networks:
2021-12-08 14:50:30 +00:00
internal:
2021-11-30 11:03:35 +00:00
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
2021-12-08 14:50:30 +00:00
nginx_config:
name: ${STACK_NAME}_nginx_config_${NGINX_CONFIG_VERSION}
file: nginx.conf.tmpl
template_driver: golang