We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 700b5d9 commit affe2cbCopy full SHA for affe2cb
setup.sh
@@ -277,7 +277,16 @@ ifneq (,$(wildcard .env))
277
export
278
endif
279
280
-DOCKER_COMPOSE := docker compose
+# Smart Docker Compose detection (handles all versions)
281
+DOCKER_COMPOSE := $(shell \
282
+ if docker-compose --version >/dev/null 2>&1; then \
283
+ echo "docker-compose"; \
284
+ elif docker compose version >/dev/null 2>&1; then \
285
+ echo "docker compose"; \
286
+ else \
287
288
+ fi)
289
+
290
# Exec into always-on wpcli container (no more "Creating ..." spam)
291
RUN_WP := $(DOCKER_COMPOSE) exec -T wpcli wp
292
DB_EXEC := $(DOCKER_COMPOSE) exec -T db
0 commit comments