Ver Fonte

links replace default-network

animeic há 2 anos atrás
pai
commit
484ac1f5ae
2 ficheiros alterados com 13 adições e 5 exclusões
  1. 2 1
      config/3dshow-mongo[all].yaml
  2. 11 4
      docker-compose.yaml

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

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

+ 11 - 4
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,6 +12,13 @@ services:
     image: stefanprodan/mgob:1.1
     container_name: mongo-backup
     restart: always
+    links:
+      - 3dshow-mongo
+      - box-mongo
+      - cloud-mongo
+      - comm-mongo-alpha
+      - tree-mongo
+      - sku3d-mongo
     ports:
       - 8090:8090
     volumes: