|
20 | 20 | | POSTGRES_PASSWORD | ✔ | | Postgres server password |
|
21 | 21 | | POSTGRES_PORT | | 5432 | Postgres server port |
|
22 | 22 | | POSTGRES_USER | | postgres | Postgres server user |
|
23 |
| -| POSTGRES_VERSION | | 16 | Postgres server version (14, 15 or 16) | |
| 23 | +| POSTGRES_VERSION | | 17 | Postgres server version (15, 16 or 17) | |
24 | 24 | | WEBGAZER_HEARTBEAT_URL | | | [WebGazer Heartbeat Monitor](https://www.webgazer.io/services/cron-job-monitoring) URL |
|
25 | 25 |
|
26 | 26 | ### Running
|
27 | 27 |
|
28 |
| - $ docker run th0th/postgres-s3-backup \ |
29 |
| - -e AWS_ACCESS_KEY_ID=<aws_access_key_id> \ |
30 |
| - -e AWS_REGION=<aws_region> \ |
31 |
| - -e AWS_S3_ENDPOINT=<aws_s3_endpoint> \ |
32 |
| - -e AWS_S3_STORAGE_CLASS=<aws_s3_storage_class[STANDARD_IA]> \ |
33 |
| - -e AWS_SECRET_ACCESS_KEY=<aws_secret_access_key> \ |
34 |
| - -e POSTGRES_DB=<database> \ |
35 |
| - -e POSTGRES_HOST=<postgres_hostname[postgres]> \ |
36 |
| - -e POSTGRES_PASSWORD=<postgres_password> \ |
37 |
| - -e POSTGRES_PORT=<postgres_port[5432]> \ |
38 |
| - -e POSTGRES_USER=<postgres_user[postgres]> \ |
39 |
| - -e POSTGRES_VERSION=<postgres_version[15]> \ |
40 |
| - -e WEBGAZER_HEARTBEAT_URL=<webgazer_heartbeat_url> |
| 28 | +```shell |
| 29 | +$ docker run \ |
| 30 | + -e AWS_ACCESS_KEY_ID=<aws_access_key_id> \ |
| 31 | + -e AWS_REGION=<aws_region> \ |
| 32 | + -e AWS_S3_ENDPOINT=<aws_s3_endpoint> \ |
| 33 | + -e AWS_S3_STORAGE_CLASS=<aws_s3_storage_class[STANDARD_IA]> \ |
| 34 | + -e AWS_SECRET_ACCESS_KEY=<aws_secret_access_key> \ |
| 35 | + -e POSTGRES_DB=<database> \ |
| 36 | + -e POSTGRES_HOST=<postgres_hostname[postgres]> \ |
| 37 | + -e POSTGRES_PASSWORD=<postgres_password> \ |
| 38 | + -e POSTGRES_PORT=<postgres_port[5432]> \ |
| 39 | + -e POSTGRES_USER=<postgres_user[postgres]> \ |
| 40 | + -e POSTGRES_VERSION=<postgres_version[17]> \ |
| 41 | + -e WEBGAZER_HEARTBEAT_URL=<webgazer_heartbeat_url> \ |
| 42 | + th0th/postgres-s3-backup |
| 43 | +``` |
41 | 44 |
|
42 | 45 | ### Example
|
43 | 46 |
|
44 |
| - $ docker run th0th/postgres-s3-backup \ |
45 |
| - -e AWS_ACCESS_KEY_ID=g9XqNnqKmUk6xqwkStkN \ |
46 |
| - -e AWS_REGION=eu-west-1 \ |
47 |
| - -e AWS_S3_ENDPOINT=my-bucket/postgres-backup \ |
48 |
| - -e AWS_S3_STORAGE_CLASS=GLACIER \ |
49 |
| - -e AWS_SECRET_ACCESS_KEY=GLBZ8mQf27UL57YHbkLhXWtfJWVwtUBbQup6mFzw \ |
50 |
| - -e POSTGRES_DB=database \ |
51 |
| - -e POSTGRES_HOST=postgres \ |
52 |
| - -e POSTGRES_PASSWORD=postgres_password \ |
53 |
| - -e POSTGRES_PORT=5432 \ |
54 |
| - -e POSTGRES_USER=postgres_user \ |
55 |
| - -e POSTGRES_VERSION=15 \ |
56 |
| - -e WEBGAZER_HEARTBEAT_URL=https://heartbeat.webgazer.io/1-8f713c75d659 |
| 47 | +```shell |
| 48 | +$ docker run \ |
| 49 | + -e AWS_ACCESS_KEY_ID=g9XqNnqKmUk6xqwkStkN \ |
| 50 | + -e AWS_REGION=eu-west-1 \ |
| 51 | + -e AWS_S3_ENDPOINT=my-bucket/postgres-backup \ |
| 52 | + -e AWS_S3_STORAGE_CLASS=GLACIER \ |
| 53 | + -e AWS_SECRET_ACCESS_KEY=GLBZ8mQf27UL57YHbkLhXWtfJWVwtUBbQup6mFzw \ |
| 54 | + -e POSTGRES_DB=database \ |
| 55 | + -e POSTGRES_HOST=postgres \ |
| 56 | + -e POSTGRES_PASSWORD=postgres_password \ |
| 57 | + -e POSTGRES_PORT=5432 \ |
| 58 | + -e POSTGRES_USER=postgres_user \ |
| 59 | + -e POSTGRES_VERSION=17 \ |
| 60 | + -e WEBGAZER_HEARTBEAT_URL=https://heartbeat.webgazer.io/1-8f713c75d659 \ |
| 61 | + th0th/postgres-s3-backup |
| 62 | +``` |
57 | 63 |
|
58 | 64 | ## Shameless plug
|
59 | 65 |
|
|
0 commit comments