|
@@ -1,61 +1,80 @@
|
|
-version: '3'
|
|
|
|
-services:
|
|
|
|
- nginx:
|
|
|
|
- container_name: app-nginx
|
|
|
|
- image: nginx:1.13
|
|
|
|
- restart: always
|
|
|
|
- ports:
|
|
|
|
- - 11800:80
|
|
|
|
- volumes:
|
|
|
|
- - ./nginx/conf.d:/etc/nginx/conf.d
|
|
|
|
- depends_on:
|
|
|
|
- - app
|
|
|
|
-
|
|
|
|
- ali1:
|
|
|
|
- restart: always
|
|
|
|
- container_name: ali_service_1
|
|
|
|
- build: ali
|
|
|
|
- expose:
|
|
|
|
- - "8095"
|
|
|
|
-
|
|
|
|
- # ali2:
|
|
|
|
- # restart: always
|
|
|
|
- # container_name: ali_service_2
|
|
|
|
- # build: ali
|
|
|
|
- # expose:
|
|
|
|
- # - "8096"
|
|
|
|
-
|
|
|
|
- mt1:
|
|
|
|
|
|
+version: '5'
|
|
|
|
+services:
|
|
|
|
+ nginx:
|
|
|
|
+ container_name: app-nginx
|
|
|
|
+ image: nginx:1.13
|
|
|
|
+ restart: always
|
|
|
|
+ ports:
|
|
|
|
+ - 11800:80
|
|
|
|
+ volumes:
|
|
|
|
+ - ./nginx/conf.d:/etc/nginx/conf.d
|
|
|
|
+ depends_on:
|
|
|
|
+ - ali-biz1
|
|
|
|
+ - mt-manager
|
|
|
|
+ - consumer-manager
|
|
|
|
+ - web-manager
|
|
|
|
+
|
|
|
|
+ ali-biz1:
|
|
|
|
+ restart: always
|
|
|
|
+ build: ./mt-backend/ali-manager/
|
|
|
|
+ working_dir: /app
|
|
|
|
+ volumes:
|
|
|
|
+ - ./app:/app
|
|
|
|
+ expose:
|
|
|
|
+ - "8095"
|
|
|
|
+ environment:
|
|
|
|
+ - "SPRING_PROFILES_ACTIVE=prod"
|
|
|
|
+
|
|
|
|
+ # ali2:
|
|
|
|
+ # restart: always
|
|
|
|
+ # container_name: ali_service_2
|
|
|
|
+ # build: ali
|
|
|
|
+ # expose:
|
|
|
|
+ # - "8096"
|
|
|
|
+
|
|
|
|
+
mt-manager:
|
|
restart: always
|
|
restart: always
|
|
- container_name: mt_service_2
|
|
|
|
- build: mt
|
|
|
|
|
|
+ build: ./mt-backend/mt-manager/
|
|
|
|
+ working_dir: /app
|
|
|
|
+ volumes:
|
|
|
|
+ - ./app:/app
|
|
expose:
|
|
expose:
|
|
- "8090"
|
|
- "8090"
|
|
|
|
+ environment:
|
|
|
|
+ - "SPRING_PROFILES_ACTIVE=prod"
|
|
|
|
|
|
- # mt2:
|
|
|
|
- # restart: always
|
|
|
|
- # container_name: mt_service_2
|
|
|
|
- # build: mt
|
|
|
|
- # expose:
|
|
|
|
- # - "8090"
|
|
|
|
-
|
|
|
|
- consumer-basic:
|
|
|
|
- restart: always
|
|
|
|
- container_name: consumer-basic
|
|
|
|
- build: consumer-basic
|
|
|
|
- expose:
|
|
|
|
- - "9000"
|
|
|
|
-
|
|
|
|
- consumer-store:
|
|
|
|
|
|
+ # mt2:
|
|
|
|
+ # restart: always
|
|
|
|
+ # container_name: mt_service_2
|
|
|
|
+ # build: mt
|
|
|
|
+ # expose:
|
|
|
|
+ # - "8090"
|
|
|
|
+
|
|
|
|
+# consumer-basic:
|
|
|
|
+# restart: always
|
|
|
|
+# container_name: consumer-basic
|
|
|
|
+# build: consumer-basic
|
|
|
|
+# expose:
|
|
|
|
+# - "9000"
|
|
|
|
+
|
|
|
|
+ consumer-manager:
|
|
restart: always
|
|
restart: always
|
|
- container_name: consumer-store
|
|
|
|
- build: consumer-store
|
|
|
|
|
|
+ build: ./mt-backend/consumer-manager/
|
|
|
|
+ working_dir: /app
|
|
|
|
+ volumes:
|
|
|
|
+ - ./app:/app
|
|
expose:
|
|
expose:
|
|
- "9005"
|
|
- "9005"
|
|
-
|
|
|
|
|
|
+ environment:
|
|
|
|
+ - "SPRING_PROFILES_ACTIVE=prod"
|
|
|
|
+
|
|
web-manager:
|
|
web-manager:
|
|
restart: always
|
|
restart: always
|
|
- container_name: web-manager
|
|
|
|
- build: web-manager
|
|
|
|
|
|
+ build: ./mt-backend/web-manager/
|
|
|
|
+ working_dir: /app
|
|
|
|
+ volumes:
|
|
|
|
+ - ./app:/app
|
|
expose:
|
|
expose:
|
|
- - "8080"
|
|
|
|
|
|
+ - "8080"
|
|
|
|
+ environment:
|
|
|
|
+ - "SPRING_PROFILES_ACTIVE=prod"
|