Browse Source

update docker_app.sh

reghao 3 months ago
parent
commit
da1f8d3329
1 changed files with 8 additions and 1 deletions
  1. 8 1
      docker_app.sh

+ 8 - 1
docker_app.sh

@@ -10,11 +10,17 @@ function start() {
   docker run -d --name=tnbeureka --network=host -v /opt/log:/app/logs tnb/eureka
   docker run -d --name=tnbgateway --network=host -v /opt/log:/app/logs tnb/gateway
   docker run -d --name=tnbaccount --network=host -v /opt/log:/app/logs tnb/account
-  docker run -d --name=tnbmessage --network=host -v /opt/log:/app/logs tnb/message
   docker run -d --name=tnbfile --network=host -v /opt/log:/app/logs tnb/file
   docker run -d --name=tnbuser --network=host -v /opt/log:/app/logs tnb/user
   docker run -d --name=tnbcontent --network=host -v /opt/log:/app/logs tnb/content
   docker run -d --name=tnbsearch --network=host -v /opt/log:/app/logs tnb/search
+
+  docker run -d --name=tnbmessage --network=host \
+    -e RABBITMQ_DEFAULT_USERSERVER_ADDRESS=127.0.0.1 \
+    -v /opt/log:/app/logs \
+    tnb/message
+
+  docker run -d --name=tnbapp --network=host tnb/tnbapp
 }
 
 function shutdown() {
@@ -26,6 +32,7 @@ function shutdown() {
   docker stop tnbuser && docker rm tnbuser
   docker stop tnbcontent && docker rm tnbcontent
   docker stop tnbsearch && docker rm tnbsearch
+  docker stop tnbsearch && docker rm tnbapp
 }
 
 start