From d0fc980d50bbfa25d58902d5302cf6e4efeb8004 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 27 Apr 2021 23:05:38 -0300 Subject: [PATCH 1/2] Update Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7dafd82..c763967 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM alpine:3.10 -RUN apk add --no-cache postgresql-client dcron tini +FROM alpine:latest +RUN apk add --no-cache postgresql-client dcron tini tzdata ENV PGHOST="db" \ PGUSER="postgres" \ PGDATABASE="postgres" \ From 0aeb5ebaa4b2812020a04a4740324ee5497f2ab0 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 27 Apr 2021 23:09:55 -0300 Subject: [PATCH 2/2] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b7c187..b0c8b6a 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,9 @@ The example above is for a `docker-compose.yml` file where you have to use `$$` Also note `%j` in the [date format](http://man7.org/linux/man-pages/man1/date.1.html) expression which means *day of year*. So you will have backup files for a year until the first one is overwritten. -For a full example of using the `custom` format please have a look at [example.yml](./example.yml). +For a full example of using the `custom` format please have a look at [example.yml](./example.yml). + +To change the timezone, use the TZ environment, example: TZ=America/Sao_Paulo ## Restore `docker exec` into the container and use [`pg_restore`](https://www.postgresql.org/docs/current/app-pgrestore.html) or [`psql`](https://www.postgresql.org/docs/current/app-psql.html).