mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
auto db backup script
This commit is contained in:
@@ -40,7 +40,8 @@ services:
|
||||
- "in5.localhost:192.168.0.124 " #host and ip
|
||||
|
||||
db:
|
||||
image: mysql:5
|
||||
build:
|
||||
context: ./config/mysql
|
||||
ports:
|
||||
- "3305:3306"
|
||||
restart: always
|
||||
@@ -51,6 +52,12 @@ services:
|
||||
- MYSQL_DATABASE=ninja
|
||||
volumes:
|
||||
- ./docker/mysql/data:/var/lib/mysql:rw,delegated
|
||||
|
||||
# comment out next 4 lines if you don't want auto sql backups
|
||||
- ./docker/mysql/bak:/backups:rw
|
||||
- ./config/mysql/backup-script:/etc/cron.daily/daily:ro
|
||||
- ./config/mysql/backup-script:/etc/cron.weekly/weekly:ro
|
||||
- ./config/mysql/backup-script:/etc/cron.monthly/monthly:ro
|
||||
networks:
|
||||
- invoiceninja
|
||||
extra_hosts:
|
||||
|
||||
Reference in New Issue
Block a user