Files
homelab/tasks/kotio.yml
Alex Frantz a90d5f76db
All checks were successful
Deploy Containers / Prepare (push) Successful in 26s
ahaaaa
2025-12-21 21:21:23 -05:00

46 lines
1.2 KiB
YAML

---
- name: Deploy Kotio Database
include_role:
name: docker
vars:
name: kotio_db
directories:
- "{{ data_dir }}/koito"
- "{{ data_dir }}/koito/db"
- "{{ data_dir }}/koito/app"
network_name: kotio
networks:
- name: kotio
image:
name: postgres
tag: 16
env:
POSTGRES_DB: kotio_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "{{ KOTIO_DB_PASS }}"
volumes:
- "{{ data_dir }}/koito/db:/var/lib/postgresql/data"
- name: Deploy Kotio
include_role:
name: docker
vars:
name: kotio
networks:
- name: kotio
- name: homelab
image:
name: gabehf/koito
tag: latest
env:
KOITO_DATABASE_URL: "postgres://postgres:{{ KOTIO_DB_PASS }}@kotio_db:5432/kotio_db"
KOITO_ALLOWED_HOSTS: koito.fntz.net
volumes:
- "{{ data_dir }}/koito/app:/etc/koito"
labels:
traefik.enable: "true"
traefik.http.routers.kotio.rule: Host(`koito.fntz.net`)
traefik.http.routers.kotio.entrypoints: webSecure
traefik.http.routers.kotio.tls.certresolver: letsencrypt
traefik.http.services.kotio.loadbalancer.server.port: "4110"