mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
feat: add devcontainer based setup (#352)
* feat: add devcontainer for local setup * feat: add local install hook * feat: add devcontainer based setup docs * feat: use uv in api/Dockerfile * fix: fix CI scripts * fix: fix post job cleanup step
This commit is contained in:
parent
285de92528
commit
0716582aa7
31 changed files with 971 additions and 227 deletions
70
.devcontainer/devcontainer.json
Normal file
70
.devcontainer/devcontainer.json
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
"name": "Dograh",
|
||||
"dockerComposeFile": [
|
||||
"../docker-compose-local.yaml",
|
||||
"docker-compose.yml"
|
||||
],
|
||||
"service": "workspace",
|
||||
"runServices": [
|
||||
"workspace",
|
||||
"postgres",
|
||||
"redis",
|
||||
"minio"
|
||||
],
|
||||
"workspaceFolder": "/workspaces/dograh",
|
||||
"shutdownAction": "stopCompose",
|
||||
"overrideCommand": false,
|
||||
"remoteUser": "vscode",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/node:1": {
|
||||
"version": "24"
|
||||
}
|
||||
},
|
||||
"initializeCommand": "git submodule update --init --recursive",
|
||||
"postCreateCommand": "bash .devcontainer/scripts/post-create.sh",
|
||||
"postStartCommand": "bash .devcontainer/scripts/post-start.sh",
|
||||
"forwardPorts": [
|
||||
5432,
|
||||
6379,
|
||||
9000,
|
||||
9001
|
||||
],
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"label": "Dograh UI",
|
||||
"onAutoForward": "ignore"
|
||||
},
|
||||
"8000": {
|
||||
"label": "Dograh API",
|
||||
"onAutoForward": "ignore"
|
||||
},
|
||||
"5432": {
|
||||
"label": "Postgres"
|
||||
},
|
||||
"6379": {
|
||||
"label": "Redis"
|
||||
},
|
||||
"9000": {
|
||||
"label": "MinIO API"
|
||||
},
|
||||
"9001": {
|
||||
"label": "MinIO Console"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"settings": {
|
||||
"python.defaultInterpreterPath": "/workspaces/dograh/venv/bin/python",
|
||||
"terminal.integrated.defaultProfile.linux": "bash"
|
||||
},
|
||||
"extensions": [
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-pylance",
|
||||
"ms-python.debugpy",
|
||||
"ms-azuretools.vscode-docker",
|
||||
"dbaeumer.vscode-eslint",
|
||||
"esbenp.prettier-vscode"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue