-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yml
29 lines (27 loc) · 1020 Bytes
/
docker-compose.example.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
version: '2.2'
services:
mysql_backup:
image: nikashitsa/mysql-backup
mem_limit: 50mb # perhaps you need to increase this limit
cpus: 0.5
volumes:
- /mysql-backup/cache:/root/.cache/duplicity
environment:
REMOTE_URL: 's3://s3.eu-central-1.amazonaws.com/mysql-backup/backups'
PARAMS: 'full --volsize=200 --s3-multipart-chunk-size=100'
MYSQL_DUMP_PARAMS: '--add-drop-table --databases mydatabase --password=YOUR_PASSWORD_HERE'
MYSQL_RESTORE_PARAMS: '--password=YOUR_PASSWORD_HERE'
BACKUP_LIFETIME: '30D' # remove old (30 days) backups. Remove this line to keep all backups
BACKUP_TIME: '0 3 * * *' # once per day.
AWS_ACCESS_KEY_ID: 'put your value here'
AWS_SECRET_ACCESS_KEY: 'put your value here'
TELEGRAM_TOKEN: 'put your value here' # optional
TELEGRAM_CHAT_ID: 'put your value here' # optional
links:
- db:mysql
logging:
options:
max-size: '10m'
max-file: '5'
db:
image: mariadb:10.1