Docker-Compose-Service hinzugefügt und DDEV-Hooks für Umgebungsvariablen konfiguriert

This commit is contained in:
2026-03-27 14:32:02 +01:00
committed by Thomas Schneider
parent b14e50af1a
commit 6320fcc8c0
2 changed files with 235 additions and 0 deletions

View File

@@ -14,6 +14,9 @@ composer_version: "2"
web_environment: []
corepack_enable: false
omit_containers: [db]
hooks:
pre-start:
- exec-host: ddev dotenv set .ddev/.env --docker-dotenv-vars="$(docker compose -f .ddev/.ddev-docker-compose-full.yaml config | awk '/^[[:space:]]{2}web:$/ {inweb=1; next} inweb && /^[[:space:]]{4}environment:$/ {inenv=1; next} inenv && /^[[:space:]]{6}[A-Za-z0-9_]+:/ {gsub(/^[[:space:]]+|:$/, "", $1); print $1; next} inenv && /^[[:space:]]{4}[^[:space:]]/ {inenv=0} inweb && /^[[:space:]]{2}[^[:space:]]/ && !/^[[:space:]]{4}/ {inweb=0}' | sort -u | paste -sd, -)"
# Key features of DDEV's config.yaml: