docker/wordpress/php

14 lines
346 B
Text
Raw Permalink Normal View History

#!/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