From c92d2e0e4069a6e53a281453efdf787592d6f50f Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Fri, 26 Dec 2025 20:25:55 -0500 Subject: [PATCH] move postgres services to global postgres --- tasks/drop.yml | 29 +---------------------------- tasks/kotio.yml | 24 +----------------------- 2 files changed, 2 insertions(+), 51 deletions(-) diff --git a/tasks/drop.yml b/tasks/drop.yml index 4d97f3f..840da73 100644 --- a/tasks/drop.yml +++ b/tasks/drop.yml @@ -1,31 +1,4 @@ --- -- name: Deploy Drop Database - include_role: - name: docker - vars: - name: drop_postgres - directories: - - "{{ data_dir }}/drop" - - "{{ data_dir }}/drop/db" - image: - name: postgres - tag: 14-alpine - network_name: drop - networks: - - name: drop - healthcheck: - test: pg_isready -d drop -U drop - retries: 5 - start_period: 10s - interval: 30s - timeout: 60s - volumes: - - "{{ data_dir }}/drop/db:/var/lib/postgresql/data" - env: - POSTGRES_PASSWORD: "drop" - POSTGRES_USER: "drop" - POSTGRES_DB: "drop" - - name: Deploy Drop include_role: name: docker @@ -43,7 +16,7 @@ - "{{ media_path }}/Games/Desktop:/library" - "{{ data_dir }}/drop/app:/data" env: - DATABASE_URL: "postgres://drop:drop@drop_postgres:5432/drop" + DATABASE_URL: "postgres://drop:drop@172.16.0.25:5432/drop" GIANT_BOMB_API_KEY: "{{ DROP_GIANT_BOMB_API_KEY }}" EXTERNAL_URL: "https://games.fntz.net" labels: diff --git a/tasks/kotio.yml b/tasks/kotio.yml index bcf73f8..560a522 100644 --- a/tasks/kotio.yml +++ b/tasks/kotio.yml @@ -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"