This will allow the migration script (in a different local project) to use wp-cli remotely.
It can be used with the following arguments: wp --ssh=ssh-user@host.docker.internal:2222/var/www/html db check and will be useful for importing from an xml file.
It cannot use dory because it's not http traffic. So it exposes the port to the host, and ssh commands for other containers use host.docker.internal
@wilson1000-MoJ do you mind taking a look, please.
Is it ok to use a hardcoded password if this is only intended to be run locally?
What's your opinion on me creating a dedicated container for this?
Could you suggest a good way to add this to the Makefile. Currently I'm doing docker compose --profile ssh up.
This will allow the migration script (in a different local project) to use wp-cli remotely.
It can be used with the following arguments:
wp --ssh=ssh-user@host.docker.internal:2222/var/www/html db check
and will be useful forimport
ing from an xml file.It cannot use dory because it's not http traffic. So it exposes the port to the host, and ssh commands for other containers use host.docker.internal
@wilson1000-MoJ do you mind taking a look, please.
docker compose --profile ssh up
.