|
@ -630,7 +630,7 @@ compose:container:service() { |
|
|
export -f compose:container:service |
|
|
export -f compose:container:service |
|
|
|
|
|
|
|
|
compose:psql() { |
|
|
compose:psql() { |
|
|
local project_name="$1" dbname="$2" |
|
|
|
|
|
|
|
|
local project_name="$1" dbname="$2" container_id |
|
|
container_id=$(compose:charm:container_one "$project_name" "postgres") || return 1 |
|
|
container_id=$(compose:charm:container_one "$project_name" "postgres") || return 1 |
|
|
docker exec -i "${container_id}" psql -U postgres "$dbname" |
|
|
docker exec -i "${container_id}" psql -U postgres "$dbname" |
|
|
} |
|
|
} |
|
|