pixelfed/docker/shell

13 lines
237 B
Plaintext
Raw Normal View History

2024-02-21 22:15:41 +00:00
#!/bin/bash
declare service="${PF_SERVICE:=worker}"
declare user="${PF_USER:=www-data}"
declare -a command=("bash")
if [[ $# -ge 1 ]]; then
command=("$@")
fi
exec docker compose exec --user "${user}" "${service}" "${command[@]}"