-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (55 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
55 lines (55 loc) · 1.49 KB
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
version: '3.7'
services:
postgres:
image: postgres:9.5
environment:
- POSTGRES_DB=userdb
- POSTGRES_PASSWORD=password
expose:
- "5432"
volumes:
- "./docker/postgres:/docker-entrypoint-initdb.d"
ports:
- "9432:5432"
s3:
#NOTE: must use 2018-05-11 version, since the ETag rules are different. 2018 will return the part md5, anything newer will not, and score-server expects etag==md5
image: minio/minio:RELEASE.2018-05-11T00-29-24Z
user: "$MY_UID:$MY_GID"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
volumes:
- "./docker/s3/data:/data"
- "./docker/s3/minio:/.minio"
command: server /data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
ports:
- "8085:9000"
backup:
build:
context: ./
dockerfile: "Dockerfile"
args:
POSTGRESQL_VERSION: "$POSTGRESQL_VERSION"
depends_on:
- postgres
- s3
environment:
BACKUP_CRONSCHEDULE: "*/10 * * * * *"
BACKUP_PREFIX: mybackup
BACKUP_AUTOCREATEBUCKET: "true"
BACKUP_PGDUMPEXEPATH: /usr/bin/pg_dump
S3_ACCESSKEY: minio
S3_SECRETKEY: minio123
S3_BUCKETNAME: mybackups
S3_BUCKETPATH: my-bucket-path/data
S3_ENDPOINTURL: http://s3:9000
DB_NAME: userdb
DB_HOST: postgres
DB_PORT: 5432
DB_USER: postgres
DB_PASSWORD: password