| 
									
										
										
										
											2023-10-07 09:57:33 +00:00
										 |  |  | version: '3.9'
 | 
					
						
							| 
									
										
										
										
											2023-09-27 15:34:01 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  |   kiwix-serve:
 | 
					
						
							|  |  |  |     container_name: kiwix-serve
 | 
					
						
							|  |  |  |     image: ghcr.io/kiwix/kiwix-serve:3.5.0-2
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |       - ${APP_PORT}:8080
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							| 
									
										
										
										
											2023-09-27 19:57:51 +00:00
										 |  |  |       - ${APP_DATA_DIR}/data/zim:/data
 | 
					
						
							| 
									
										
										
										
											2023-09-27 15:34:01 +00:00
										 |  |  |     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
 |