Hello!
I settled on using docker for my website due to security concerns and I thought that it would help with portability but it seems to be a nightmare
I want to locally develop my website which I will then transfer over to my AWS instance in order to have my website up and running with no downtime
I started experimenting by using two virtual machines and seeing if the port would be that easy
I thought that it would be as simple as just switching the volumes out between the two instances and using “docker compose up” to take the containers back
But apparently WordPress holds the IP address hardcoded in the database under wp\_options which after I changed still seems to not work and I get redirected to my old IP,seems to only half work on localhost, nevermind what apache might be thinking of the IP address swap.
I wanted to do this so that whenever I wanted to update my website I wouldn’t have to take it down for maintenance and I could just swap out the volumes.
I know that there might be plugins that could help me port over the data but I thought that docker would be the perfect candidate for something like this, yet it seems to have let me down awfully.
Does anybody here run docker compose for their website or tried to do something familiar?If so could you help me out?Thank you.
[ad_2]
Docker is way too complicated for what WP is. Just use LocalWP