feat(scripts): name the service name configurable

This commit is contained in:
Oliver Davies 2023-07-18 20:51:40 +01:00
parent 2a5cc1253d
commit 9980f80e0b

View file

@ -11,7 +11,7 @@ shift 1
pv "${filename}" \
| zcat \
| docker compose exec -T database mysql \
| docker compose exec -T "${SERVICE_NAME:-database}" mysql \
-p"${DB_PASSWORD:-app}" \
-u"${DB_USER:-app}" \
"${DB_NAME:-app}"