Files
homelab/tasks/booklore.yml
Alex Frantz b90e42a182
All checks were successful
Deploy Containers / Prepare (push) Successful in 3s
Revert "fix database url in booklore"
This reverts commit 0c7da39896.
2026-01-10 00:52:23 -05:00

35 lines
1.0 KiB
YAML

---
- name: Deploy Booklore
include_role:
name: docker
vars:
name: booklore
networks:
- name: homelab
- name: booklore
directories:
- "{{ data_dir }}/booklore"
- "{{ data_dir }}/booklore/data"
- "{{ data_dir }}/booklore/books"
image:
name: booklore/booklore
tag: latest
env:
APP_USER_ID: "{{ PUID }}"
APP_GROUP_ID: "{{ PGID }}"
TZ: "{{ TZ }}"
BOOKLORE_PORT: "6060"
DATABASE_URL: jdbc:mariadb://172.16.0.25:3306/booklore
DATABASE_USERNAME: booklore
DATABASE_PASSWORD: "{{ BOOKLORE_DB_PASS }}"
volumes:
- "{{ data_dir }}/booklore/data:/app/data"
- "{{ data_dir }}/booklore/books:/books"
- "{{ media_path }}/Books/Bookdrop:/bookdrop"
labels:
traefik.enable: "true"
traefik.http.routers.booklore.rule: Host(`books.fntz.net`)
traefik.http.routers.booklore.entrypoints: webSecure
traefik.http.routers.booklore.tls.certresolver: letsencrypt
traefik.http.services.booklore.loadbalancer.server.port: "6060"