This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
manifest.yml
88 lines (81 loc) · 2.93 KB
/
manifest.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
# See manifest.yml documentation available at:
# https://docs.developer.swisscom.com/devguide/deploy-apps/manifest.html
applications:
- name: backman # name of your application
memory: 1G # mysqldump consumes a lot of memory, no matter how small the database is. keep this at least at 1G.
disk_quota: 1G
instances: 1 # do not configure more than 1 instance, backman does not coordinate work among itself!
health-check-type: http # or 'port' if you don't want to use the /healthz endpoint
health-check-http-endpoint: /healthz
routes: # configure the route for the backman web UI / API
- route: my-backman.scapp-corp.swisscom.com
services: # services instances you want to bind to backman
- backman-storage # one S3 service must be configured for backman to work
# add any database services here that you want backman to backup for you
- my_mysql_db
- my_postgres_db
- my_mongodb
- my_elasticsearch
- my_redis
# push as a container image
docker:
image: jamesclonk/backman:latest
# choose image version/tag from https://github.com/swisscom/backman/releases
# or https://hub.docker.com/r/jamesclonk/backman/tags
# or stay on 'latest' if you're feeling adventurous
env:
TZ: Europe/Zurich
BACKMAN_USERNAME: ((username)) # optional, username for HTTP Basic Auth
BACKMAN_PASSWORD: ((password)) # optional, password for HTTP Basic Auth
# BACKMAN_ENCRYPTION_KEY: "" # optional, data-at-rest-encryption for backups stored on S3
# consult /docs/configuration.md and /docs/cloudfoundry/configuration.md for more details on $BACKMAN_CONFIG
# please edit the "services" section below before deploying backman, those are just examples and not meant to be used!
BACKMAN_CONFIG: |
{
"log_level": "info",
"logging_timestamp": false,
"disable_web": false,
"disable_metrics": false,
"disable_restore": false,
"disable_metrics_logging": false,
"disable_health_logging": true,
"unprotected_metrics": false,
"unprotected_health": true,
"s3": {
"service_label": "dynstrg",
"bucket_name": "backman-storage"
},
"services": {
"my_postgres_db": {
"schedule": "0 0 2,18,22 * * *",
"timeout": "2h",
"retention": {
"days": 90,
"files": 20
}
},
"other_postgres_db": {
"timeout": "2h15m",
"retention": {
"files": 500
}
},
"my-elasticsearch": {
"direct_s3": true
},
"my_mysql_db": {
"timeout": "35m",
"disable_column_statistics": true
},
"my_mongodb": {
"log_stderr": true
},
"mongodb-for-backend": {
"schedule": "0 45 0/4 * * *",
"retention": {
"files": 500
}
}
}
}