added audiobookshelf to stack
This commit is contained in:
parent
69395a324b
commit
1fe3f7bdd5
2
dns.yml
2
dns.yml
@ -17,6 +17,8 @@
|
||||
ip: "152.53.36.98"
|
||||
- name: "auth"
|
||||
ip: "152.53.36.98"
|
||||
- name: "audio"
|
||||
ip: "152.53.36.98"
|
||||
|
||||
tasks:
|
||||
- name: Add A records for subdomains
|
||||
|
@ -6,6 +6,10 @@ pin.thesatelliteoflove.com {
|
||||
reverse_proxy pinry-pinry-1:80
|
||||
}
|
||||
|
||||
audio.thesatelliteoflove.com {
|
||||
reverse_proxy audiobookshelf-audiobookshelf-1:80
|
||||
}
|
||||
|
||||
post.thesatelliteoflove.com {
|
||||
reverse_proxy postiz:5000
|
||||
}
|
||||
|
19
roles/docker/tasks/audiobookshelf.yml
Normal file
19
roles/docker/tasks/audiobookshelf.yml
Normal 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
|
@ -108,4 +108,8 @@
|
||||
|
||||
- name: Install pinry
|
||||
import_tasks: pinry.yml
|
||||
tags: pinry
|
||||
tags: pinry
|
||||
|
||||
- name: Install audiobookshelf
|
||||
import_tasks: audiobookshelf.yml
|
||||
tags: audiobookshelf
|
23
roles/docker/templates/audiobookshelf-compose.yml.j2
Normal file
23
roles/docker/templates/audiobookshelf-compose.yml.j2
Normal 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
|
Loading…
x
Reference in New Issue
Block a user