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,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 - name: Deploy Drop
include_role: include_role:
name: docker name: docker
@@ -43,7 +16,7 @@
- "{{ media_path }}/Games/Desktop:/library" - "{{ media_path }}/Games/Desktop:/library"
- "{{ data_dir }}/drop/app:/data" - "{{ data_dir }}/drop/app:/data"
env: 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 }}" GIANT_BOMB_API_KEY: "{{ DROP_GIANT_BOMB_API_KEY }}"
EXTERNAL_URL: "https://games.fntz.net" EXTERNAL_URL: "https://games.fntz.net"
labels: labels:

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 - name: Deploy Kotio
include_role: include_role:
name: docker name: docker
@@ -33,7 +11,7 @@
name: gabehf/koito name: gabehf/koito
tag: latest tag: latest
env: 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 KOITO_ALLOWED_HOSTS: koito.fntz.net
volumes: volumes:
- "{{ data_dir }}/koito/app:/etc/koito" - "{{ data_dir }}/koito/app:/etc/koito"