devcontainer.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "name": "Development Jellyfin Server",
  3. "dockerComposeFile": "docker-compose.yaml",
  4. "service": "app",
  5. "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
  6. // restores nuget packages, installs the dotnet workloads and installs the dev https certificate
  7. "postStartCommand": "sudo dotnet restore; sudo dotnet workload update; sudo dotnet dev-certs https --trust; sudo bash \"./.devcontainer/install-ffmpeg.sh\"",
  8. // reads the extensions list and installs them
  9. "postAttachCommand": "cat .vscode/extensions.json | jq -r .recommendations[] | xargs -n 1 code --install-extension",
  10. "forwardPorts": [
  11. "pgadmin:8081"
  12. ],
  13. "portsAttributes": {
  14. "8081": {
  15. "label": "pgAdmin",
  16. "onAutoForward": "notify",
  17. "requireLocalPort": true
  18. },
  19. "8096": {
  20. "label": "jellyfinapi",
  21. "onAutoForward": "notify",
  22. "requireLocalPort": true
  23. }
  24. },
  25. "features": {
  26. "ghcr.io/devcontainers/features/dotnet:2": {
  27. "version": "none",
  28. "dotnetRuntimeVersions": "9.0",
  29. "aspNetCoreRuntimeVersions": "9.0"
  30. },
  31. "ghcr.io/devcontainers-contrib/features/apt-packages:1": {
  32. "preserve_apt_list": false,
  33. "packages": [
  34. "libfontconfig1"
  35. ]
  36. },
  37. "ghcr.io/devcontainers/features/docker-in-docker:2": {
  38. "dockerDashComposeVersion": "v2"
  39. },
  40. "ghcr.io/devcontainers/features/github-cli:1": {},
  41. "ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {}
  42. },
  43. "hostRequirements": {
  44. "memory": "8gb",
  45. "cpus": 4
  46. }
  47. }