Browse Source

add migrate

animeic 2 năm trước cách đây
mục cha
commit
d815cdeef0
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      docker-compose.yaml

+ 5 - 0
docker-compose.yaml

@@ -106,3 +106,8 @@ services:
       CONFIGER_MONGO: 3dshow-customer-user-mongo
       CONFIGER_REDIS: 3dshow-redis
       CONFIGER_JWT: spu3d#spu3d secret#168
+      MONGO_MIGRATIONS: /data/migrations==mongodb://root:3dshow@3dshow-mongo-alpha:27017/customer-user?authSource=admin
+    
+    volumes:
+      - ./mongo-migrations/customer:/data/migrations
+