|
| 1 | +{ |
| 2 | + "name": "Reference Solution dev container", |
| 3 | + "dockerComposeFile": "docker-compose.yml", |
| 4 | + "service": "app", |
| 5 | + "features": { |
| 6 | + "github-cli": "latest" |
| 7 | + }, |
| 8 | + "workspaceFolder": "/workspace", |
| 9 | + "customizations": { |
| 10 | + "vscode": { |
| 11 | + "extensions": [ |
| 12 | + "ms-python.python", |
| 13 | + "ms-python.vscode-pylance", |
| 14 | + "ms-python.flake8", |
| 15 | + "ms-python.black-formatter", |
| 16 | + "dbaeumer.vscode-eslint", |
| 17 | + "esbenp.prettier-vscode" |
| 18 | + ] |
| 19 | + }, |
| 20 | + "settings": { |
| 21 | + "terminal.integrated.defaultProfile.linux": "bash", |
| 22 | + "terminal.integrated.profiles.linux": { |
| 23 | + "bash": { |
| 24 | + "path": "/bin/bash", |
| 25 | + "icon": "terminal-bash" |
| 26 | + } |
| 27 | + }, |
| 28 | + "python.pythonPath": "/usr/local/bin/python", |
| 29 | + "python.defaultInterpreterPath": "/usr/local/bin/python", |
| 30 | + "python.languageServer": "Pylance", |
| 31 | + "editor.formatOnSave": true, |
| 32 | + "[python]": { |
| 33 | + "editor.defaultFormatter": "ms-python.black-formatter" |
| 34 | + }, |
| 35 | + "black-formatter.args": [ |
| 36 | + "--line-length=88" |
| 37 | + ], |
| 38 | + "flake8.args": [ |
| 39 | + "--max-line-length=88", |
| 40 | + "--select=W,B,F,E711,E712,E901", |
| 41 | + "--ignore=E203,B005,F401,F811,F821,F403,F405,W503", |
| 42 | + "--max-complexity=11" |
| 43 | + ], |
| 44 | + "[typescript]": { |
| 45 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 46 | + }, |
| 47 | + "[typescriptreact]": { |
| 48 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 49 | + }, |
| 50 | + "prettier.workingDirectories": [ |
| 51 | + { |
| 52 | + "mode": "auto" |
| 53 | + } |
| 54 | + ], |
| 55 | + "eslint.workingDirectories": [ |
| 56 | + { |
| 57 | + "mode": "auto" |
| 58 | + } |
| 59 | + ] |
| 60 | + } |
| 61 | + }, |
| 62 | + "forwardPorts": [8000, 3000, 5432], |
| 63 | + "remoteEnv": { |
| 64 | + "SQLALCHEMY_DATABASE_URI": "postgresql://youruser:yourpassword@db/yourdatabase" |
| 65 | + }, |
| 66 | + "postCreateCommand": ".devcontainer/scripts/postCreate.sh", |
| 67 | + "postStartCommand": ".devcontainer/scripts/postStart.sh", |
| 68 | + "portsAttributes": { |
| 69 | + "8000": { "label": "Backend API"}, |
| 70 | + "3000": { "label": "Frontend" , |
| 71 | + "onAutoForward": "openBrowser" |
| 72 | + }, |
| 73 | + "5432": { "label": "Database" } |
| 74 | + } |
| 75 | +} |
0 commit comments