Commit 7f0ce80b authored by 吴文龙's avatar 吴文龙

优化

parent e65e1ecc
version: '3' version: '2.2'
services: services:
mysql: mysql:
......
...@@ -6,7 +6,7 @@ services: ...@@ -6,7 +6,7 @@ services:
ports: ports:
- "8099:8080" - "8099:8080"
environment: environment:
PARAMS: "--spring.datasource.url=jdbc:mysql://10.10.39.251:3306/iot_job?Unicode=true&characterEncoding=UTF-8&useSSL=false --spring.datasource.username=root --spring.datasource.password=huansi@V3" PARAMS: "--spring.datasource.url=jdbc:mysql://mysql:3306/iot_job?Unicode=true&characterEncoding=UTF-8&useSSL=false --spring.datasource.username=root --spring.datasource.password=huansi@V3"
iot-dbapi: iot-dbapi:
image: registry.cn-hangzhou.aliyuncs.com/hsyl_iot/db-api:v3 image: registry.cn-hangzhou.aliyuncs.com/hsyl_iot/db-api:v3
...@@ -15,7 +15,7 @@ services: ...@@ -15,7 +15,7 @@ services:
- "8523:8523" - "8523:8523"
- "8525:8525" - "8525:8525"
environment: environment:
- DB_URL=jdbc:mysql://10.10.39.251:3306/iot_dbapi?useSSL=false&characterEncoding=UTF-8&serverTimezone=GMT%2B8 - DB_URL=jdbc:mysql://mysql:3306/iot_dbapi?useSSL=false&characterEncoding=UTF-8&serverTimezone=GMT%2B8
- DB_USERNAME=root - DB_USERNAME=root
- DB_PASSWORD=huansi@V3 - DB_PASSWORD=huansi@V3
- DB_DRIVER=com.mysql.cj.jdbc.Driver - DB_DRIVER=com.mysql.cj.jdbc.Driver
...@@ -34,7 +34,7 @@ services: ...@@ -34,7 +34,7 @@ services:
- KAFKA_K2_BOOTSTRAP_SERVERS=kafka-sync:9092 - KAFKA_K2_BOOTSTRAP_SERVERS=kafka-sync:9092
- HS_TIME_TASK_LOCAL=true - HS_TIME_TASK_LOCAL=true
- SERVER_JWT_LOGIN_URL=http://tb-core1:8080 - SERVER_JWT_LOGIN_URL=http://tb-core1:8080
- IOT_DBAPI_URL=http://10.10.39.251:8520 - IOT_DBAPI_URL=http://192.168.4.18:8520
- CACHE_TYPE=redis - CACHE_TYPE=redis
- REDIS_HOST=redis - REDIS_HOST=redis
- REDIS_PORT=6379 - REDIS_PORT=6379
......
...@@ -30,5 +30,5 @@ ADDITIONAL_COMPOSE_MONITORING_ARGS=$(additionalComposeMonitoringArgs) || exit $? ...@@ -30,5 +30,5 @@ ADDITIONAL_COMPOSE_MONITORING_ARGS=$(additionalComposeMonitoringArgs) || exit $?
checkFolders --create || exit $? checkFolders --create || exit $?
docker-compose \ docker-compose \
-f docker-compose.yml -f docker-compose-debezium.yml -f docker-compose.iot-business.yml $ADDITIONAL_CACHE_ARGS $ADDITIONAL_COMPOSE_ARGS $ADDITIONAL_COMPOSE_QUEUE_ARGS $ADDITIONAL_COMPOSE_MONITORING_ARGS \ -f docker-compose.yml -f docker-compose-mysql.yml -f docker-compose-pgadmin4.yml -f docker-compose-debezium.yml -f docker-compose.iot-business.yml $ADDITIONAL_CACHE_ARGS $ADDITIONAL_COMPOSE_ARGS $ADDITIONAL_COMPOSE_QUEUE_ARGS $ADDITIONAL_COMPOSE_MONITORING_ARGS \
up -d up -d
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment