From 9980f80e0b5f49b18e0c55b84fc091eecb2ceb66 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 18 Jul 2023 20:51:40 +0100 Subject: [PATCH] feat(scripts): name the service name configurable --- bin/import-gzip-database | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/import-gzip-database b/bin/import-gzip-database index aa17337..9a6cf7e 100755 --- a/bin/import-gzip-database +++ b/bin/import-gzip-database @@ -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}"