move postgres services to global postgres
All checks were successful
Deploy Containers / Prepare (push) Successful in 54s

This commit is contained in:
2025-12-26 20:25:55 -05:00
parent 086f29d62d
commit c92d2e0e40
2 changed files with 2 additions and 51 deletions

View File

@@ -1,26 +1,4 @@
---
- 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
@@ -33,7 +11,7 @@
name: gabehf/koito
tag: latest
env:
KOITO_DATABASE_URL: "postgres://postgres:{{ KOTIO_DB_PASS }}@kotio_db:5432/kotio_db"
KOITO_DATABASE_URL: "postgres://koito:{{ KOTIO_DB_PASS }}@172.16.0.25:5432/kotio"
KOITO_ALLOWED_HOSTS: koito.fntz.net
volumes:
- "{{ data_dir }}/koito/app:/etc/koito"