diff --git a/wordpress/php b/wordpress/php new file mode 100755 index 0000000..6f596aa --- /dev/null +++ b/wordpress/php @@ -0,0 +1,13 @@ +#!/bin/bash + +# Get the directory of the script +script_dir="$(dirname "$(readlink -f "$0")")" + +# Construct the path to docker-compose.yml relative to the script +compose_file="$script_dir/../docker-compose.yml" + +# Form the docker-compose command +command="docker-compose --file $compose_file exec wordpress php "$@"" + +# Execute the command +$command