|
@@ -20,6 +20,8 @@ echo '----build image----'
|
|
docker run -p 6055:5055 --name ${app_name} \
|
|
docker run -p 6055:5055 --name ${app_name} \
|
|
--restart=always \
|
|
--restart=always \
|
|
--link mysql:db \
|
|
--link mysql:db \
|
|
|
|
+--log-opt max-size=50m \
|
|
|
|
+--log-opt max-file=3 \
|
|
-e 'spring.profiles.active'=${profile_active} \
|
|
-e 'spring.profiles.active'=${profile_active} \
|
|
-e TZ="Asia/Shanghai" \
|
|
-e TZ="Asia/Shanghai" \
|
|
-v /etc/localtime:/etc/localtime \
|
|
-v /etc/localtime:/etc/localtime \
|
|
@@ -62,6 +64,8 @@ docker run \
|
|
--name ${app_admin_name} \
|
|
--name ${app_admin_name} \
|
|
--restart=always \
|
|
--restart=always \
|
|
--link mysql:db \
|
|
--link mysql:db \
|
|
|
|
+--log-opt max-size=50m \
|
|
|
|
+--log-opt max-file=3 \
|
|
-e 'spring.profiles.active'=${profile_active} \
|
|
-e 'spring.profiles.active'=${profile_active} \
|
|
-e TZ="Asia/Shanghai" \
|
|
-e TZ="Asia/Shanghai" \
|
|
-v /etc/localtime:/etc/localtime \
|
|
-v /etc/localtime:/etc/localtime \
|
|
@@ -102,6 +106,8 @@ docker run \
|
|
--name ${app_admin_name} \
|
|
--name ${app_admin_name} \
|
|
--restart=always \
|
|
--restart=always \
|
|
--link mysql:db \
|
|
--link mysql:db \
|
|
|
|
+--log-opt max-size=50m \
|
|
|
|
+--log-opt max-file=3 \
|
|
-e 'spring.profiles.active'=${profile_active} \
|
|
-e 'spring.profiles.active'=${profile_active} \
|
|
-e TZ="Asia/Shanghai" \
|
|
-e TZ="Asia/Shanghai" \
|
|
--add-host=gdxypx.xy.com:192.168.1.210 \
|
|
--add-host=gdxypx.xy.com:192.168.1.210 \
|