| 
									
										
										
										
											2022-09-07 05:09:27 +00:00
										 |  |  | version: "3.7"
 | 
					
						
							| 
									
										
										
										
											2022-08-03 19:29:10 +00:00
										 |  |  | services:
 | 
					
						
							|  |  |  |   booksonic:
 | 
					
						
							| 
									
										
										
										
											2023-05-23 12:43:52 +00:00
										 |  |  |     image: lscr.io/linuxserver/booksonic-air:2201.1.0
 | 
					
						
							| 
									
										
										
										
											2022-08-03 19:29:10 +00:00
										 |  |  |     container_name: booksonic
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - PUID=1000
 | 
					
						
							|  |  |  |       - PGID=1000
 | 
					
						
							|  |  |  |       - TZ=${TZ}
 | 
					
						
							| 
									
										
										
										
											2023-05-23 12:43:52 +00:00
										 |  |  |       - CONTEXT_PATH={APP_PROTOCOL:-http}://${APP_DOMAIN}
 | 
					
						
							| 
									
										
										
										
											2022-08-03 19:29:10 +00:00
										 |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/config:/config
 | 
					
						
							|  |  |  |       - ${ROOT_FOLDER_HOST}/media/data/books/spoken:/audiobooks
 | 
					
						
							|  |  |  |       - ${ROOT_FOLDER_HOST}/media/data/podcasts:/podcasts
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |       - ${APP_PORT}:4040
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							| 
									
										
										
										
											2022-11-11 19:33:58 +00:00
										 |  |  |     labels:
 | 
					
						
							| 
									
										
										
										
											2023-06-10 14:46:05 +00:00
										 |  |  |       # Main
 | 
					
						
							|  |  |  |       traefik.enable: true
 | 
					
						
							|  |  |  |       traefik.http.middlewares.booksonic-web-redirect.redirectscheme.scheme: https
 | 
					
						
							|  |  |  |       traefik.http.services.booksonic.loadbalancer.server.port: 4040
 | 
					
						
							|  |  |  |       # Web
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic-insecure.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic-insecure.service: booksonic
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic-insecure.middlewares: booksonic-web-redirect
 | 
					
						
							|  |  |  |       # Websecure
 | 
					
						
							| 
									
										
										
										
											2022-11-11 19:33:58 +00:00
										 |  |  |       traefik.http.routers.booksonic.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic.service: booksonic
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic.tls.certresolver: myresolver
 | 
					
						
							| 
									
										
										
										
											2023-06-10 14:46:05 +00:00
										 |  |  |       # Local domain
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic-local-insecure.rule: Host(`booksonic.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic-local-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic-local-insecure.service: booksonic
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic-local-insecure.middlewares: booksonic-web-redirect
 | 
					
						
							|  |  |  |       # Local domain secure
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic-local.rule: Host(`booksonic.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic-local.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic-local.service: booksonic
 | 
					
						
							|  |  |  |       traefik.http.routers.booksonic-local.tls: true
 |