{
    "name": "Markemacht (Dev Container)",
    "dockerComposeFile": [
        "../docker-compose.yml"
    ],
    "service": "laravel.test",
    "workspaceFolder": "/var/www/html",
    "remoteUser": "sail",
    "features": {},
    "customizations": {
        "vscode": {
            "extensions": [
                "bmewburn.vscode-intelephense-client",
                "onecentlin.laravel-blade",
                "shufo.vscode-blade-formatter",
                "bradlc.vscode-tailwindcss",
                "Anthropic.claude-code",
                "adrianwilczynski.alpine-js-intellisense",
                "onecentlin.laravel-extension-pack",
                "cierra.livewire-vscode"
            ]
        }
    },
    // WICHTIG: Nur noch der Haupt-Container bleibt drin
    "runServices": [
        "laravel.test"
    ],
    "containerEnv": {
        "WWWUSER": "501",
        "WWWGROUP": "20",
        "LARAVEL_SAIL": "1"
    },
    "mounts": [
        "source=${localWorkspaceFolder},target=/var/www/html,type=bind,consistency=cached",
        "source=/Users/pandora/Library/Mobile Documents/iCloud~md~obsidian/Documents/DEV-Vault/markemacht,target=/var/www/html/docs,type=bind",
        "source=/Users/pandora/.forgejo_token,target=/tmp/.forgejo_token,type=bind,readonly",
        "source=/Users/pandora/.ssh,target=/home/sail/.ssh,type=bind,readonly"
    ],
    "postCreateCommand": "mkdir -p ~/.local/bin && curl -L https://gitea.com/gitea/tea/releases/download/v0.14.0/tea-0.14.0-linux-arm64 -o ~/.local/bin/tea && chmod +x ~/.local/bin/tea && echo 'export PATH=\"$HOME/.local/bin:$PATH\"' >> ~/.bashrc && (~/.local/bin/tea login add --name 'gitmedia' --url 'https://git.adametz.media' --token $(cat /tmp/.forgejo_token) || true)",
    "forwardPorts": [
        5177,
        5178
    ],
    "portsAttributes": {
        "5177": {
            "label": "Vite Dev Server (Portal/Backend)",
            "onAutoForward": "notify"
        },
        "5178": {
            "label": "Vite Dev Server (Web)",
            "onAutoForward": "notify"
        }
    },
    "runArgs": [
        "--network=host"
    ]
}