Browse Source

add migrations

animeic 2 years ago
parent
commit
d0fe10018f
1 changed files with 7 additions and 1 deletions
  1. 7 1
      docker-compose.yaml

+ 7 - 1
docker-compose.yaml

@@ -88,7 +88,13 @@ services:
       CONFIGER_MONGO: 3dshow-supply-user-mongo
       CONFIGER_REDIS: 3dshow-redis
       CONFIGER_JWT: spu3d#spu3d secret#168
-  
+      # MONGO_MIGRATIONS: /data/migrations==mongodb://root:3dshow@3dshow-mongo-alpha:27017/supply-user?authSource=admin&&/data/migrations==mongodb://user:password@host:port/dbname?query
+      MONGO_MIGRATIONS: /data/migrations==mongodb://root:3dshow@3dshow-mongo-alpha:27017/supply-user?authSource=admin
+    
+    volumes:
+      - ./mongo-migrations/supplier:/data/migrations
+
+
   # c端用户
   3dshow-customer-user-alpha:
     image: registry.cn-chengdu.aliyuncs.com/infish/pack-comm-usercenter:v1.0.0