separate db into own compose
Some checks failed
fp/our CI/CD / build (push) Successful in 2m3s
ci / test (push) Failing after 3m40s

This commit is contained in:
CJ_Clippy 2025-10-05 02:33:25 -08:00
parent 325fe576e2
commit 807792fcc0
3 changed files with 26 additions and 12 deletions

View File

@ -20,6 +20,13 @@
clone: true
force: true
- name: Copy the db compose file
ansible.builtin.copy:
remote_src: true
src: /tmp/checkout/services/our/compose.db.yaml
dest: /etc/futureporn/our/compose.db.yaml
mode: "0744"
- name: Copy the compose file
ansible.builtin.copy:
remote_src: true
@ -27,6 +34,13 @@
dest: /etc/futureporn/our/compose.production.yaml
mode: "0744"
- name: Deploy db stack
community.docker.docker_stack:
state: present
name: our-postgres
compose:
- /etc/futureporn/our/compose.db.yaml
- name: Deploy stack to green
community.docker.docker_stack:
state: present

View File

@ -0,0 +1,12 @@
services:
pgadmin:
image: dpage/pgadmin4:latest
env_file: ./.env
ports:
- target: 5050
published: 8095
protocol: tcp
mode: ingress
volumes:
pgdata:

View File

@ -66,15 +66,3 @@ services:
init: false
volumes:
- /mnt/vfs/futureporn:/mnt/vfs/futureporn
pgadmin:
image: dpage/pgadmin4:latest
env_file: ./.env
ports:
- target: 5050
published: 8095
protocol: tcp
mode: ingress
volumes:
pgdata: