Browse Source

Fix run mongo-webui service get exit 1 (#1702)

Shao Yu-Lung (Allen) 6 years ago
parent
commit
7ef36daaba
1 changed files with 1 additions and 2 deletions
  1. 1 2
      docker-compose.yml

+ 1 - 2
docker-compose.yml

@@ -522,7 +522,6 @@ services:
         - frontend
         - frontend
         - backend
         - backend
 
 
-
 ### ElasticSearch ########################################
 ### ElasticSearch ########################################
     elasticsearch:
     elasticsearch:
       build: ./elasticsearch
       build: ./elasticsearch
@@ -545,7 +544,6 @@ services:
         - frontend
         - frontend
         - backend
         - backend
 
 
-
 ### Kibana ##############################################
 ### Kibana ##############################################
     kibana:
     kibana:
       build: ./kibana
       build: ./kibana
@@ -820,6 +818,7 @@ services:
     mongo-webui:
     mongo-webui:
       build:
       build:
         context: ./mongo-webui
         context: ./mongo-webui
+      restart: always
       environment:
       environment:
         - ROOT_URL=${MONGO_WEBUI_ROOT_URL}
         - ROOT_URL=${MONGO_WEBUI_ROOT_URL}
         - MONGO_URL=${MONGO_WEBUI_MONGO_URL}
         - MONGO_URL=${MONGO_WEBUI_MONGO_URL}