Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a7639863
authored
Apr 17, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复user服务启动错误
1 parent
29602f3d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
6 deletions
config-init/config/redis-config.yaml
config-init/scripts/nacos-config-quick.sh
docker-compose/.env
docker-compose/docker-compose.yml
config-init/config/redis-config.yaml
View file @
a763986
...
...
@@ -3,7 +3,7 @@ spring:
database
:
0
host
:
redis
port
:
6379
# password: FiNmQzYmQxMGE0MTMwO
password
:
123456
jedis
:
pool
:
max-active
:
32
...
...
config-init/scripts/nacos-config-quick.sh
View file @
a763986
...
...
@@ -8,6 +8,7 @@ orderConfig=$(cat ../config/project-order.yaml)
gatewayConfig
=
$(
cat ../config/project-gateway.yaml
)
providerConfig
=
$(
cat ../config/project-provider.yaml
)
consumerConfig
=
$(
cat ../config/project-consumer.yaml
)
userConfig
=
$(
cat ../config/project-user.yaml
)
groupId
=
"project"
curl -X POST
"nacos-server:8848/nacos/v1/cs/configs"
-d
"dataId=datasource-config.yaml&group=
${
groupId
}
&content=
${
datasourceConfig
}
"
curl -X POST
"nacos-server:8848/nacos/v1/cs/configs"
-d
"dataId=project-storage.yaml&group=
${
groupId
}
&content=
${
storageConfig
}
"
...
...
@@ -16,4 +17,5 @@ curl -X POST "nacos-server:8848/nacos/v1/cs/configs" -d "dataId=project-order.ya
curl -X POST
"nacos-server:8848/nacos/v1/cs/configs"
-d
"dataId=project-gateway.yaml&group=
${
groupId
}
&content=
${
gatewayConfig
}
"
curl -X POST
"nacos-server:8848/nacos/v1/cs/configs"
-d
"dataId=project-provider.yaml&group=
${
groupId
}
&content=
${
providerConfig
}
"
curl -X POST
"nacos-server:8848/nacos/v1/cs/configs"
-d
"dataId=project-consumer.yaml&group=
${
groupId
}
&content=
${
consumerConfig
}
"
curl -X POST
"nacos-server:8848/nacos/v1/cs/configs"
-d
"dataId=project-user.yaml&group=
${
groupId
}
&content=
${
userConfig
}
"
echo
"Nacos config pushed successfully finished"
\ No newline at end of file
docker-compose/.env
View file @
a763986
...
...
@@ -6,3 +6,4 @@ ORDER_PORT=8013
STORAGE_PORT=8011
PRAISE_PROVIDER_PORT=8015
PRAISE_CONSUMER_PORT=8014
USER_PORT=8000
\ No newline at end of file
docker-compose/docker-compose.yml
View file @
a763986
...
...
@@ -86,16 +86,13 @@ services:
# redis
redis
:
image
:
redis:
5.0.5
image
:
redis:
6.2-alpine
hostname
:
redis
restart
:
always
container_name
:
project-redis
ports
:
-
"
6379:6379"
command
:
-
"
redis-server"
args
:
-
"
/usr/local/etc/redis/redis.conf"
command
:
redis-server --save 20 1 --loglevel warning --requirepass 123456
# gateway
project-gateway
:
...
...
@@ -207,3 +204,21 @@ services:
-
project-praise-consumer
-
project-praise-provider
# user module
project-user
:
image
:
project-user
restart
:
always
build
:
dockerfile
:
./project-user/Dockerfile
context
:
../
env_file
:
-
.env
container_name
:
project-user
ports
:
-
${USER_PORT}:${USER_PORT}
depends_on
:
-
nacos
-
mysql
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment