separate db into own compose
This commit is contained in:
parent
325fe576e2
commit
807792fcc0
@ -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
|
||||
|
12
services/our/compose.db.yaml
Normal file
12
services/our/compose.db.yaml
Normal 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:
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user