Files
kiwix/compose.yml

29 lines
803 B
YAML

---
services:
app:
image: ghcr.io/kiwix/kiwix-serve:3.8.1
networks:
- proxy
volumes:
- type: bind
source: ${ZIM_FILES_PATH}
target: /data
command:
- "*.zim"
user: root
environment:
- 'DOWNLOAD=${DOWNLOAD_ZIM_URL}'
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8080"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=0.1.4+3.8.1"
networks:
proxy:
external: true