animeic 2 سال پیش
والد
کامیت
4c1afcacb1
2فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 2 1
      config/box-mongo[all].yaml
  2. 4 3
      docker-compose.yaml

+ 2 - 1
config/box-mongo[all].yaml

@@ -1,6 +1,7 @@
 scheduler:
   # run every day at 6:00 and 18:00 UTC
-  cron: "0 16 */1 * *"
+  # cron: "0 16 */1 * *"
+  cron: "10 7 */1 * *"
   # number of backups to keep locally
   retention: 14
   # backup operation timeout in minutes

+ 4 - 3
docker-compose.yaml

@@ -13,11 +13,12 @@ services:
     image: stefanprodan/mgob:1.1
     container_name: mongo-backup
     restart: always
-
-    ports:
-      - 8090:8090
     volumes:
       - ./config:/config
       - ~/data/mongobackupdata/storage:/storage
       - ~/data/mongobackupdata/tmp:/tmp
       - ~/data/mongobackupdata/data:/data
+    ports:
+      - 8090:8090
+    links:
+      - box-mongo