kirche-einfach/.devcontainer/devcontainer.json

45 lines
1.6 KiB
JSON

{
"name": "kirche-einfach",
"dockerComposeFile": ["../docker-compose.yml"],
"service": "api",
"runServices": ["api", "frontend", "langflow", "lfx"],
"workspaceFolder": "/srv/kirche-einfach",
"remoteUser": "vscode",
"containerEnv": {
"APP_ENV": "dev",
"FORGEJO_USERNAME": "jonas"
},
"mounts": [
"source=${localEnv:USERPROFILE}/.ssh,target=/mnt/host-ssh,type=bind,readonly",
"source=kirche-opencode-share,target=/home/vscode/.local/share/opencode,type=volume",
"source=kirche-opencode-config,target=/home/vscode/.config/opencode,type=volume"
],
"features": {
// moby:false — python:3.12-slim is Debian trixie now, whose repos have
// no moby-cli (feature default). false installs the upstream Docker CE
// CLI instead, which supports trixie.
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": false
}
},
"overrideCommand": false,
// Absolute paths: lifecycle commands run in the image WORKDIR
// (/srv/kirche-einfach/backend), not the workspace folder — relative
// .devcontainer/... paths fail with "No such file or directory" (exit 127).
"postCreateCommand": "sudo -E bash /srv/kirche-einfach/.devcontainer/setup.sh",
"postStartCommand": "bash /srv/kirche-einfach/.devcontainer/postStart.sh",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"charliermarsh.ruff",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
],
"settings": {
"python.defaultInterpreterPath": "/opt/venv/bin/python"
}
}
}
}