animeic 2 yıl önce
ebeveyn
işleme
0b3f1e320b
2 değiştirilmiş dosya ile 7 ekleme ve 15 silme
  1. 2 4
      config/3dshow-mongo[all].yaml
  2. 5 11
      docker-compose.yaml

+ 2 - 4
config/3dshow-mongo[all].yaml

@@ -1,15 +1,13 @@
 scheduler:
   # run every day at 6:00 and 18:00 UTC
-  # cron: "15 16 */1 * *"
-  cron: "30 9 */1 * *"
+  cron: "15 16 */1 * *"
   # number of backups to keep locally
   retention: 14
   # backup operation timeout in minutes
   timeout: 60
 target:
   # mongod IP or host name
-  # host: "3dshow-mongo"
-  host: "pack-3dshow-3dshow-mongo-1"
+  host: "3dshow-mongo"
   # mongodb port
   port: 27017
   # mongodb database name, leave blank to backup all databases

+ 5 - 11
docker-compose.yaml

@@ -1,10 +1,10 @@
 version: '3.8'
 
 # 网络
-# networks:
-#   default:
-#     external:
-#       name: default-network # 与需要备份的mongo在同一个网络
+networks:
+  default:
+    external:
+      name: default-network # 与需要备份的mongo在同一个网络
 
 services:
   # mgob
@@ -12,13 +12,7 @@ services:
     image: stefanprodan/mgob:1.1
     container_name: mongo-backup
     restart: always
-    links:
-      - pack-3dshow-3dshow-mongo-1
-      - box-mongo
-      - cloud-mongo
-      - comm-mongo-alpha
-      - tree-mongo
-      - sku3d-mongo
+
     ports:
       - 8090:8090
     volumes: