restructure services based on host machine
This commit is contained in:
2
nuc/audiobookshelf/.env.example
Normal file
2
nuc/audiobookshelf/.env.example
Normal file
@@ -0,0 +1,2 @@
|
||||
# DOMAIN_ROOT is the root domain that this service will register as with Traefik
|
||||
DOMAIN_ROOT=domain.tld
|
43
nuc/audiobookshelf/docker-compose.yml
Executable file
43
nuc/audiobookshelf/docker-compose.yml
Executable file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
version: "3.8"
|
||||
services:
|
||||
audiobookshelf:
|
||||
image: advplyr/audiobookshelf
|
||||
container_name: audiobookshelf
|
||||
restart: unless-stopped
|
||||
|
||||
environment:
|
||||
- DOMAIN_ROOT=${DOMAIN_ROOT}
|
||||
|
||||
labels:
|
||||
- "traefik.http.services.audiobookshelf.loadbalancer.server.port=80"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.audiobookshelf.rule=Host(`audiobookshelf.${DOMAIN_ROOT}`)"
|
||||
- 'traefik.http.routers.audiobookshelf.middlewares=authelia@docker'
|
||||
|
||||
volumes:
|
||||
- audiobookshelf_config:/config
|
||||
- audiobookshelf_metadata:/metadata
|
||||
- audiobookshelf_audiobooks:/audiobooks
|
||||
- audiobookshelf_podcasts:/podcasts
|
||||
|
||||
networks:
|
||||
- web
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
audiobookshelf_config:
|
||||
external: true
|
||||
|
||||
audiobookshelf_metadata:
|
||||
external: true
|
||||
|
||||
audiobookshelf_audiobooks:
|
||||
external: true
|
||||
|
||||
audiobookshelf_podcasts:
|
||||
external: true
|
||||
|
Reference in New Issue
Block a user