Single part at the root, COMPOSE_FILE in .env

This commit is contained in:
hh
2026-09-08 20:38:27 +02:00
parent a950161b00
commit 1c628625e9
10 changed files with 47 additions and 19 deletions
-1
View File
@@ -1 +0,0 @@
COMPOSE_ENV=local
-6
View File
@@ -1,6 +0,0 @@
.env
.env.*
!.env.example
docker-compose.override.yml
.DS_Store
.idea
+16
View File
@@ -0,0 +1,16 @@
.env
.env.*
!.env.example
docker-compose.override.yml
.DS_Store
.idea
{% if layout == 'single' %}.venv/
__pycache__/
*.pyc
.ruff_cache/
.pytest_cache/
sessions/*.session*
node_modules/
.svelte-kit/
/build/
{% endif %}
+12 -2
View File
@@ -1,7 +1,17 @@
repos:
- repo: local
hooks:{% if not parts %} []{% endif %}
{% for part in parts %} - id: {{ part }}-fmt
hooks:{% if layout == 'parts' and not parts %} []{% endif %}
{% if layout == 'single' %} - id: fmt
name: fmt
entry: make fmt
language: system
pass_filenames: false
- id: check
name: check
entry: make check
language: system
pass_filenames: false
{% endif %}{% for part in parts %} - id: {{ part }}-fmt
name: {{ part }} fmt
entry: make -C {{ part }} fmt
language: system
-7
View File
@@ -1,7 +0,0 @@
{% if parts %}include:
{% for part in parts %} - path:
- {{ part }}/docker-compose.yml
- {{ part }}/docker-compose.${COMPOSE_ENV:-local}.yml
project_directory: .
{% endfor %}{% else %}services: {}
{% endif %}
@@ -0,0 +1,2 @@
{% if parts %}COMPOSE_FILE=docker-compose.yml{% for part in parts %}:{{ part }}/docker-compose.local.yml{% endfor %}
{% endif %}
@@ -0,0 +1,5 @@
{% if parts %}include:
{% for part in parts %} - path: {{ part }}/docker-compose.yml
project_directory: .
{% endfor %}{% else %}services: {}
{% endif %}