Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE 17] fix(demo): fix invalid nacos discovery address #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions appactive-demo/docker-compose-quick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ services:
ports:
- "3306:3306"
command: [
--character-set-server=utf8mb4,
--collation-server=utf8mb4_unicode_ci
--character-set-server=utf8mb4,
--collation-server=utf8mb4_unicode_ci
]

gateway:
Expand All @@ -39,9 +39,10 @@ services:
container_name: storage
hostname: storage
environment:
- spring.cloud.nacos.discovery.server-addr=nacos:8848
- dubbo.registry.address=nacos://nacos:8848
- spring.datasource.url=jdbc:mysql://mysql:3306/product?characterEncoding=utf8&useSSL=false&serverTimezone=GMT
# - spring.datasource.url=jdbc:mysql://mysql:3306/product?characterEncoding=utf8&useSSL=false&serverTimezone=GMT&activeInstanceId=mysql&activeDbName=product
# - spring.datasource.url=jdbc:mysql://mysql:3306/product?characterEncoding=utf8&useSSL=false&serverTimezone=GMT&activeInstanceId=mysql&activeDbName=product
- appactive.unit=center
- appactive.app=storage
- server.port=8881
Expand All @@ -61,9 +62,10 @@ services:
container_name: storage-unit
hostname: storage-unit
environment:
- spring.cloud.nacos.discovery.server-addr=nacos:8848
- dubbo.registry.address=nacos://nacos:8848
- spring.datasource.url=jdbc:mysql://mysql:3306/product?characterEncoding=utf8&useSSL=false&serverTimezone=GMT
# - spring.datasource.url=jdbc:mysql://mysql:3306/product?characterEncoding=utf8&useSSL=false&serverTimezone=GMT&activeInstanceId=mysql&activeDbName=product
# - spring.datasource.url=jdbc:mysql://mysql:3306/product?characterEncoding=utf8&useSSL=false&serverTimezone=GMT&activeInstanceId=mysql&activeDbName=product
- appactive.unit=unit
- appactive.app=storage
- server.port=8882
Expand All @@ -83,6 +85,7 @@ services:
container_name: product
hostname: product
environment:
- spring.cloud.nacos.discovery.server-addr=nacos:8848
- dubbo.registry.address=nacos://nacos:8848
- spring.datasource.url=jdbc:mysql://mysql:3306/product?characterEncoding=utf8&useSSL=false&serverTimezone=GMT
- appactive.unit=center
Expand All @@ -105,6 +108,7 @@ services:
container_name: product-unit
hostname: product-unit
environment:
- spring.cloud.nacos.discovery.server-addr=nacos:8848
- dubbo.registry.address=nacos://nacos:8848
- spring.datasource.url=jdbc:mysql://mysql:3306/product?characterEncoding=utf8&useSSL=false&serverTimezone=GMT
- appactive.unit=unit
Expand All @@ -127,6 +131,7 @@ services:
container_name: frontend
hostname: frontend
environment:
- spring.cloud.nacos.discovery.server-addr=nacos:8848
- dubbo.registry.address=nacos://nacos:8848
- appactive.unit=center
- appactive.app=frontend
Expand All @@ -148,6 +153,7 @@ services:
container_name: frontend-unit
hostname: frontend-unit
environment:
- spring.cloud.nacos.discovery.server-addr=nacos:8848
- dubbo.registry.address=nacos://nacos:8848
- appactive.unit=unit
- appactive.app=frontend
Expand Down