This commit is contained in:
3
main.yml
3
main.yml
@@ -78,6 +78,9 @@
|
||||
- name: Deploy Docs
|
||||
import_tasks: tasks/docs.yml
|
||||
tags: docs_deploy
|
||||
- name: Deploy Audiobookshelf
|
||||
import_tasks: tasks/audiobookshelf.yml
|
||||
tags: audiobookshelf_deploy
|
||||
- name: Deploy Gitea Runner
|
||||
import_tasks: tasks/runner.yml
|
||||
tags: runner_deploy
|
||||
|
||||
27
tasks/audiobookshelf.yml
Normal file
27
tasks/audiobookshelf.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
- name: Deploy AudioBookshelf
|
||||
include_role:
|
||||
name: docker
|
||||
vars:
|
||||
name: audiobookshelf
|
||||
directories:
|
||||
- "{{ data_dir }}/audiobookshelf"
|
||||
- "{{ data_dir }}/audiobookshelf/config"
|
||||
- "{{ data_dir }}/audiobookshelf/metadata"
|
||||
image:
|
||||
name: ghcr.io/advplyr/audiobookshelf
|
||||
tag: latest
|
||||
networks:
|
||||
- name: homelab
|
||||
volumes:
|
||||
- "{{ media_path }}/Books/Audiobooks:/audiobooks"
|
||||
- "{{ data_dir }}/audiobookshelf/config:/config"
|
||||
- "{{ data_dir }}/audiobookshelf/metadata:/metadata"
|
||||
env:
|
||||
TZ: "{{ TZ }}"
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.audiobookshelf.rule: Host(`abooks.fntz.net`)
|
||||
traefik.http.routers.audiobookshelf.entrypoints: webSecure
|
||||
traefik.http.routers.audiobookshelf.tls.certresolver: letsencrypt
|
||||
traefik.http.services.audiobookshelf.loadbalancer.server.port: "80"
|
||||
Reference in New Issue
Block a user