diff --git a/examples/track-http/compose.yaml b/examples/track-http/compose.yaml index bc38898..cadde4d 100644 --- a/examples/track-http/compose.yaml +++ b/examples/track-http/compose.yaml @@ -7,7 +7,9 @@ include: - ../docker/rabbitmq/compose.yml - ../docker/minio/compose.yml - ../docker/maintain/compose.yml - - ../docker/jtt808/compose.yml + - path: + - ../docker/jtt808/compose.yml + - ../docker/jtt808/compose.http.yml - path: - ../docker/video/compose.yml - ../docker/video/compose.storage.yml diff --git a/jtt808/compose.http.yml b/jtt808/compose.http.yml new file mode 100644 index 0000000..999edaa --- /dev/null +++ b/jtt808/compose.http.yml @@ -0,0 +1,5 @@ +services: + jtt808: + environment: + # 网关Http服务 + - gateway_http_url=http://${TRACK_HOSTNAME}:${WEB_PORT_HTTP}/jtt808 \ No newline at end of file diff --git a/jtt808/compose.yml b/jtt808/compose.yml index 621999b..ac11cd6 100644 --- a/jtt808/compose.yml +++ b/jtt808/compose.yml @@ -35,10 +35,10 @@ services: - gateway_ftp_passive_ip=${JTT808_IP:?required} - gateway_ftp_passive_ports=${JTT808_PORT_FTP_PASSIVE} - # 终端注册服务 + # 终端注册服务(默认使用别名maintain访问) - gateway_device-register-url=${WEB_BASE_URL:-http://${MAINTAIN_HOST}:${MAINTAIN_PORT}} # 网关Http服务 - - gateway_http_url=${WEB_BASE_URL:-http://${MAINTAIN_HOST}:${MAINTAIN_PORT}}/jtt808 + - gateway_http_url=https://${TRACK_HOSTNAME}:${WEB_PORT_HTTPS}}/jtt808 # MongoDB - spring_data_mongodb_host=${MONGODB_HOST:-mongodb}