Home > front end >  Project in the docker connected not redis after deployment
Project in the docker connected not redis after deployment

Time:09-16

Project success in local deployment, deployment to show connection after the docker redis, firewall, redis connection pool are tried, or not, what reason is this excuse me everybody,,

CodePudding user response:

RedisDesktopManager can successfully connected, originally deployment thoroughly, one day suddenly can't, then what all don't succeed

CodePudding user response:

Redis the node local screen now, look to whether can connect
And then in the docker test,

CodePudding user response:

refer to the second floor Applied Sciences response:
node local redis is now trying to see if can connect,
And then test in docker,

My redis only one node, then can normal boot local environment to start the project, the project packaged into the docker run later not...

CodePudding user response:

See if you connect the redis configuration file

CodePudding user response:

Let me guess:
Why doesn't my project into the docker even on database
Why doesn't my project into the docker even on redis
why doesn't my project into the docker even on another docker

Because the inside of the docker localhost or 127.0.0.1 isn't your hosting IP ~
Baidu has a solution,
Of course I think a better solution is docker network, find out

CodePudding user response:

The
reference 5 floor dog egg, reply:
let me guess:
Why doesn't my project into the docker even on database
Why doesn't my project into the docker even on redis
why doesn't my project into the docker even on another docker

Because the inside of the docker localhost or 127.0.0.1 isn't your hosting IP ~
Baidu has a solution,
Of course I think a better solution is docker network, know about the

Hello, I find the relevant information, can I use docker - compose will need redis, mysql, springboot jars to can be arranged

CodePudding user response:

refer to 6th floor Wang Ziyang 123456 response:
Quote: refer to fifth floor dog egg, reply:
let me guess:
Why doesn't my project into the docker even on database
Why doesn't my project into the docker even on redis
why doesn't my project into the docker even on another docker

Because the inside of the docker localhost or 127.0.0.1 isn't your hosting IP ~
Baidu has a solution,
Of course I think a better solution is docker network, know about the

Hello, I find the relevant information, can I use docker - compose will need redis, mysql, springboot jar package to orchestrate please


Is not the problem, compose layout can, of course, I'm curious you can mysql connected,
Say so, your redis in docker springboot project: on the host can use IP directly connected redis
Your redis, on the host springboot project in the docker: can't connect directly with IP redis
In your redis docker springboot project in the docker: can't connect directly with IP redis

Namely, your springboot in docker environment, redis in docker container, just the two docker containers in the same host machine, this time, A container access B container, cannot use the host's IP: container ports to access, baidu and figure out how to use docker containers to visit another docker feeling can understand

CodePudding user response:

The reason seems to be configuration problems, determine the IP right, use visual tools can connect

CodePudding user response:

Can be connected, the local operation no problem, without rhyme or reason behind again good,,, I don't know what circumstance, I guess may be led to port is ali cloud server shut down?
  • Related