Skip to content

Commit 18ee2bc

Browse files
authored
Merge pull request #2 from JargeZ/pg-16
Update to pg 16
2 parents c70e19e + 77721a6 commit 18ee2bc

File tree

2 files changed

+46
-4
lines changed

2 files changed

+46
-4
lines changed

Dockerfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
FROM ubuntu:18.04
1+
FROM postgres:16
22

33
RUN apt update && apt install -y wget gnupg pigz pbzip2 xz-utils lrzip brotli zstd \
4-
&& wget -qO - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
5-
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main" | tee /etc/apt/sources.list.d/postgresql.list \
6-
&& apt update && apt install -y postgresql-client \
74
&& wget https://dl.minio.io/client/mc/release/linux-amd64/mc -O /sbin/mc && chmod +x /sbin/mc \
85
&& apt remove -y wget && apt autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
96

docker-compose.test.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
version: "3.9"
2+
3+
volumes:
4+
minio_data:
5+
postgres_data:
6+
7+
services:
8+
postgres-backup:
9+
image: backuptools/postgres-backup-s3
10+
restart: no
11+
build: .
12+
environment:
13+
- S3_BUCK=test-backup
14+
- S3_NAME=folder-name/backup-name-prefix
15+
- S3_URI=http://minio:minio123@minio:9000
16+
- PG_URI=postgres://postgres:postgres@postgres:5432/postgres
17+
# Available: pigz, xz, bzip2, lrzip, brotli, zstd
18+
- COMPRESS=pigz
19+
depends_on:
20+
- minio
21+
- postgres
22+
entrypoint: ""
23+
command: "/bin/sh -c 'while :; do sleep 10s && ./entrypoint.sh; done'"
24+
25+
26+
minio:
27+
image: minio/minio
28+
volumes:
29+
- minio_data:/data
30+
environment:
31+
MINIO_ROOT_USER: minio
32+
MINIO_ROOT_PASSWORD: minio123
33+
command: server /data --console-address ":9001" --address 0.0.0.0:9000
34+
35+
postgres:
36+
image: postgres:15-alpine
37+
environment:
38+
POSTGRES_USER: postgres
39+
POSTGRES_PASSWORD: postgres
40+
POSTGRES_DB: postgres
41+
volumes:
42+
- postgres_data:/var/lib/postgresql/data
43+
- ./test-init.sql:/docker-entrypoint-initdb.d/init-dump.sql
44+
ports:
45+
- "5434:5432"

0 commit comments

Comments
 (0)