add kwiix-serve files

This commit is contained in:
jonnymacbean 2023-09-27 16:34:01 +01:00 committed by Nicolas Meienberger
parent 341fb77c31
commit 71f7728f09
4 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,19 @@
{
"$schema": "../schema.json",
"name": "Kiwix Serve",
"port": 8080,
"available": true,
"exposable": true,
"id": "kiwix-serve",
"tipi_version": 1,
"version": "3.5.0-2",
"categories": [
"media"
],
"description": "Kiwix Serve is a web server for hosting .zim files",
"short_desc": "Kiwix Serve is a web server for hosting .zim files",
"author": "Kiwix",
"source": "https://github.com/kiwix/kiwix-tools/",
"website": "https://kiwix.org/",
"form_fields": []
}

View File

@ -0,0 +1,39 @@
version: "3.9"
services:
kiwix-serve:
container_name: kiwix-serve
image: ghcr.io/kiwix/kiwix-serve:3.5.0-2
ports:
- ${APP_PORT}:8080
volumes:
- ${APP_DATA_DIR}/zim:/data
command: '*.zim'
restart: unless-stopped
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.kiwix-serve-web-redirect.redirectscheme.scheme: https
traefik.http.services.kiwix-serve.loadbalancer.server.port: 8080
# Web
traefik.http.routers.kiwix-serve-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.kiwix-serve-insecure.entrypoints: web
traefik.http.routers.kiwix-serve-insecure.service: kiwix-serve
traefik.http.routers.kiwix-serve-insecure.middlewares: kiwix-serve-web-redirect
# Websecure
traefik.http.routers.kiwix-serve.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.kiwix-serve.entrypoints: websecure
traefik.http.routers.kiwix-serve.service: kiwix-serve
traefik.http.routers.kiwix-serve.tls.certresolver: myresolver
# Local domain
traefik.http.routers.kiwix-serve-local-insecure.rule: Host(`kiwix-serve.${LOCAL_DOMAIN}`)
traefik.http.routers.kiwix-serve-local-insecure.entrypoints: web
traefik.http.routers.kiwix-serve-local-insecure.service: kiwix-serve
traefik.http.routers.kiwix-serve-local-insecure.middlewares: kiwix-serve-web-redirect
# Local domain secure
traefik.http.routers.kiwix-serve-local.rule: Host(`kiwix-serve.${LOCAL_DOMAIN}`)
traefik.http.routers.kiwix-serve-local.entrypoints: websecure
traefik.http.routers.kiwix-serve-local.service: kiwix-serve
traefik.http.routers.kiwix-serve-local.tls: true

View File

@ -0,0 +1 @@
TODO

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB