diff --git a/.vscode/launch.json b/.vscode/launch.json index 63df0bbe..90ad73a3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,13 +1,17 @@ { "version": "0.2.0", "configurations": [ - { - "name": "Attach to Docker", + "name": "Attach to Backend (Docker)", "type": "go", "request": "attach", "mode": "remote", - "remotePath": "", + "substitutePath": [ + { + "from": "${workspaceFolder}", + "to": "/app" + } + ], "port": 2345, "host": "127.0.0.1", "showLog": true, diff --git a/docker-compose.local.yml b/docker-compose.local.yml index fe613ccd..682da56f 100644 --- a/docker-compose.local.yml +++ b/docker-compose.local.yml @@ -34,6 +34,7 @@ services: - caddy_data_local:/data - caddy_config_local:/config - /var/run/docker.sock:/var/run/docker.sock:ro # For local container discovery + - ./backend:/app/backend:ro # Mount source for debugging # Mount your existing Caddyfile for automatic import (optional) # - ./my-existing-Caddyfile:/import/Caddyfile:ro # - ./sites:/import/sites:ro # If your Caddyfile imports other files