-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose-dev.yml
58 lines (54 loc) · 1.59 KB
/
docker-compose-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3.9"
services:
backup-15-2:
build:
context: .
args:
POSTGRES_VERSION: 15.2
depends_on:
- database-15-2
environment:
- POSTGRES_PASSWORD=SumPassw0rdHere
- POSTGRES_DB=postgres
- PGHOST=database-15-2 # The hostname of the PostgreSQL database to dump
- CRON_SCHEDULE=*/5 * * * * # Every 5 minutes
- RETAIN_COUNT=3 # Keep this number of backups
# - S3_BUCKET_PATH=s3://${S3_BUCKET_NAME}/
# - S3_SECRET_KEY=${S3_SECRET_KEY}
# - S3_ACCESS_KEY=${S3_ACCESS_KEY}
volumes:
- ./persistent/dump/15-2:/dump
restart: unless-stopped
backup-12-16:
build:
context: .
args:
POSTGRES_VERSION: 12.16
depends_on:
- database-12-16
environment:
- POSTGRES_PASSWORD=SumPassw0rdHere
- POSTGRES_DB=postgres
- PGHOST=database-12-16 # The hostname of the PostgreSQL database to dump
- CRON_SCHEDULE=*/5 * * * * # Every 5 minutes
- RETAIN_COUNT=3 # Keep this number of backups
# - S3_BUCKET_PATH=s3://${S3_BUCKET_NAME}/
# - S3_SECRET_KEY=${S3_SECRET_KEY}
# - S3_ACCESS_KEY=${S3_ACCESS_KEY}
volumes:
- ./persistent/dump/12-16:/dump
restart: unless-stopped
database-12-16:
image: postgres:12.16
environment:
- POSTGRES_PASSWORD=SumPassw0rdHere
- POSTGRES_DB=postgres
volumes:
- ./persistent/12-16:/var/lib/postgresql/data
database-15-2:
image: postgres:15.2
environment:
- POSTGRES_PASSWORD=SumPassw0rdHere
- POSTGRES_DB=postgres
volumes:
- ./persistent/15-2:/var/lib/postgresql/data