chore: improve compose for git worktree (#142)
All checks were successful
continuous-integration/drone/push Build is passing

* Avoid multiple project names in `docker compose` by setting a common name.
* Simplify `develop` watch rules:
  * When `mix.lock` is changed, rebuild the image.
  * When any other file is changed, sync and restart the service.
    * Except for directories that are related to deps/build/test/lsp.
* Remove `file` argument from `docker compose` in `Makefile`

Reviewed-on: #142
Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
This commit is contained in:
2025-04-30 17:19:18 +00:00
committed by João Paulo Dubas
parent d4299d4d7a
commit 3a0bc3621f
2 changed files with 10 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
.DEFAULT_GOAL := help
COMPOSE = docker compose -f docker-compose.yml -f docker-compose.override.yml
COMPOSE = docker compose
.PHONY: system_setup
system_setup: ## setup system deps