Moving postgres Dockerfile

This commit is contained in:
Samuel Clay 2024-01-27 23:16:09 -05:00
parent 29195c0c33
commit 5b117f94db
3 changed files with 4 additions and 4 deletions

View file

@ -51,9 +51,9 @@
- name: Build the custom postgres docker image
docker_image:
name: newsblur/postgres:13
source: build
build:
path: /srv/newsblur/docker/postgres/Dockerfile.postgres
pull: yes
path: /srv/newsblur/docker/postgres/
force_tag: yes
state: present

View file

@ -249,8 +249,8 @@ archive_command = 'test ! -f /var/lib/postgresql/archive/%f && cp -f %p /var/lib
# These are only used in recovery mode.
# restore_command = 'rsync -a -e "ssh -i /var/lib/postgresql/.ssh/id_rsa" db-postgres.service.consul:/srv/newsblur/docker/volumes/postgres/archive/%f "%p"'
restore_command = 'cp /var/lib/postgresql/archive/%f %p' # command to use to restore an archived logfile segment
restore_command = 'rsync -a -e "ssh -i /var/lib/postgresql/.ssh/id_rsa" db-postgres.service.consul:/srv/newsblur/docker/volumes/postgres/archive/%f "%p"'
# restore_command = 'cp /var/lib/postgresql/archive/%f %p' # command to use to restore an archived logfile segment
# placeholders: %p = path of file to restore
# %f = file name only
# e.g. 'cp /mnt/server/archivedir/%f %p'