added audiobookshelf to stack

This commit is contained in:
Phil 2024-10-28 15:17:52 -06:00
parent 69395a324b
commit 1fe3f7bdd5
5 changed files with 53 additions and 1 deletions

View File

@ -17,6 +17,8 @@
ip: "152.53.36.98" ip: "152.53.36.98"
- name: "auth" - name: "auth"
ip: "152.53.36.98" ip: "152.53.36.98"
- name: "audio"
ip: "152.53.36.98"
tasks: tasks:
- name: Add A records for subdomains - name: Add A records for subdomains

View File

@ -6,6 +6,10 @@ pin.thesatelliteoflove.com {
reverse_proxy pinry-pinry-1:80 reverse_proxy pinry-pinry-1:80
} }
audio.thesatelliteoflove.com {
reverse_proxy audiobookshelf-audiobookshelf-1:80
}
post.thesatelliteoflove.com { post.thesatelliteoflove.com {
reverse_proxy postiz:5000 reverse_proxy postiz:5000
} }

View File

@ -0,0 +1,19 @@
- name: make audiobookshelf directories
ansible.builtin.file:
path: "{{ item}}"
state: directory
loop:
- /opt/stacks/audiobookshelf
- name: Template out the compose file
ansible.builtin.template:
src: audiobookshelf-compose.yml.j2
dest: /opt/stacks/audiobookshelf/compose.yml
owner: root
mode: 644
- name: deploy audiobookshelf stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/audiobookshelf
files:
- compose.yml

View File

@ -108,4 +108,8 @@
- name: Install pinry - name: Install pinry
import_tasks: pinry.yml import_tasks: pinry.yml
tags: pinry tags: pinry
- name: Install audiobookshelf
import_tasks: audiobookshelf.yml
tags: audiobookshelf

View File

@ -0,0 +1,23 @@
services:
audiobookshelf:
image: ghcr.io/advplyr/audiobookshelf:2.16.0
volumes:
- audiobooks:/audiobooks
- podcasts:/podcasts
- config:/config
- metadata:/metadata
environment:
- TZ=America/Denver
volumes:
audiobooks:
driver: local
podcasts:
driver: local
config:
driver: local
metadata:
driver: local
networks:
default:
external: true
name: lava