mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
Moving postgres Dockerfile
This commit is contained in:
parent
29195c0c33
commit
5b117f94db
3 changed files with 4 additions and 4 deletions
|
@ -51,9 +51,9 @@
|
||||||
- name: Build the custom postgres docker image
|
- name: Build the custom postgres docker image
|
||||||
docker_image:
|
docker_image:
|
||||||
name: newsblur/postgres:13
|
name: newsblur/postgres:13
|
||||||
|
source: build
|
||||||
build:
|
build:
|
||||||
path: /srv/newsblur/docker/postgres/Dockerfile.postgres
|
path: /srv/newsblur/docker/postgres/
|
||||||
pull: yes
|
|
||||||
force_tag: yes
|
force_tag: yes
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
|
|
@ -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.
|
# 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 = '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 = 'cp /var/lib/postgresql/archive/%f %p' # command to use to restore an archived logfile segment
|
||||||
# placeholders: %p = path of file to restore
|
# placeholders: %p = path of file to restore
|
||||||
# %f = file name only
|
# %f = file name only
|
||||||
# e.g. 'cp /mnt/server/archivedir/%f %p'
|
# e.g. 'cp /mnt/server/archivedir/%f %p'
|
||||||
|
|
Loading…
Add table
Reference in a new issue