Skip to content

Commit 68c3ddf

Browse files
author
Matthew Fisher
committed
fix(docker-entrypoint-initdb): bump wait timeout
The default wait time is 1 minute, which usually isn't enough time for a recovery to finish. Bumping to 20 minutes seems to alleviate the problem.
1 parent 16d1362 commit 68c3ddf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rootfs/docker-entrypoint-initdb.d/003_restore_from_backup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ EOF
4646
echo "restore_command = 'envdir /etc/wal-e.d/env wal-e wal-fetch \"%f\" \"%p\"'" >> "$PGDATA/recovery.conf"
4747
gosu postgres pg_ctl -D "$PGDATA" \
4848
-o "-c listen_addresses=''" \
49+
-t 1200 \
4950
-w start
5051
else
5152
echo "No backups found. Performing an initial backup..."

0 commit comments

Comments
 (0)