|
@@ -20,6 +20,8 @@ echo '----build image----'
|
|
|
docker run -p 5055:5055 --name ${app_name} \
|
|
|
--restart=always \
|
|
|
--link mysql:db \
|
|
|
+--log-opt max-size=10m \
|
|
|
+--log-opt max-file=3 \
|
|
|
-e 'spring.profiles.active'=${profile_active} \
|
|
|
-e TZ="Asia/Shanghai" \
|
|
|
--add-host=gdxypx.xy.com:192.168.1.210 \
|
|
@@ -59,6 +61,8 @@ docker run \
|
|
|
--name ${app_admin_name} \
|
|
|
--restart=always \
|
|
|
--link mysql:db \
|
|
|
+--log-opt max-size=10m \
|
|
|
+--log-opt max-file=3 \
|
|
|
-e 'spring.profiles.active'=${profile_active} \
|
|
|
-e TZ="Asia/Shanghai" \
|
|
|
--add-host=gdxypx.xy.com:192.168.1.210 \
|
|
@@ -99,6 +103,8 @@ docker run \
|
|
|
--name ${app_admin_name} \
|
|
|
--restart=always \
|
|
|
--link mysql:db \
|
|
|
+--log-opt max-size=10m \
|
|
|
+--log-opt max-file=3 \
|
|
|
-e 'spring.profiles.active'=${profile_active} \
|
|
|
-e TZ="Asia/Shanghai" \
|
|
|
--add-host=gdxypx.xy.com:192.168.1.210 \
|