generated from ensaremirerol/nextjs-fastapi-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevcontainer.json
81 lines (81 loc) · 3.32 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "RDFCraft Development Container",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:debian",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/java:1": {},
"ghcr.io/devcontainers/features/python:1": {},
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/guiyomh/features/vim": {},
"ghcr.io/jsburckhardt/devcontainer-features/ruff:1": {},
"ghcr.io/gvatsal60/dev-container-features/pre-commit:1": {},
// Provides a lightweight desktop environment via VNC.
"ghcr.io/devcontainers/features/desktop-lite:1": {},
"ghcr.io/va-h/devcontainers-features/uv:1": {},
"ghcr.io/guiyomh/features/just:0": {},
"ghcr.io/devcontainers-extra/features/curl-apt-get:1": {},
"ghcr.io/devcontainers/features/git:1": {}
},
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"settings": {
"[python]": {
"editor.formatOnType": true,
"editor.defaultFormatter": "charliermarsh.ruff"
},
"python.defaultInterpreterPath": "./.venv/bin/python"
},
"extensions": [
"streetsidesoftware.code-spell-checker",
"MarkLindeman.turtle-vocab-autocomplete",
"stardog-union.vscode-stardog-languages",
"stardog-union.stardog-rdf-grammars",
"stardog-union.vscode-langserver-sms",
"SonarSource.sonarlint-vscode",
"mechatroner.rainbow-csv",
"esbenp.prettier-vscode",
"GitHub.copilot",
"GitHub.copilot-chat",
"mikestead.dotenv",
"ms-python.python",
"ms-python.vscode-pylance",
"github.vscode-github-actions",
"iliazeus.vscode-ansi",
"charliermarsh.ruff"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [9000],
// Use 'portsAttributes' to set default properties for specific forwarded ports.
// More info: https://containers.dev/implementors/json_reference/#port-attributes
"forwardPorts": [
3000,
8000,
6080
],
"portsAttributes": {
"3000": {
"label": "Frontend",
"description": "React Frontend",
"icon": "web"
},
"8000": {
"label": "Backend",
"description": "FastAPI Backend",
"icon": "server"
},
"6080": {
"label": "desktop"
}
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "uv sync && echo 'DEBUG=1' > .env && cd ./app && npm i && cd .."
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}