diff options
| author | JPVenson <github@jpb.email> | 2025-01-27 18:32:36 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.email> | 2025-01-27 18:32:36 +0000 |
| commit | 4ce0d498abe1c52f92805a2cb04cbcfe3218817e (patch) | |
| tree | 02b75baedfcd55ca0521b9f5e709152223ed57c3 /.devcontainer/pgsql/devcontainer.json | |
| parent | ce00bc076e9a97197e7e7e83276013518ce84ec5 (diff) | |
Added pgsql devcontainer
Diffstat (limited to '.devcontainer/pgsql/devcontainer.json')
| -rw-r--r-- | .devcontainer/pgsql/devcontainer.json | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.devcontainer/pgsql/devcontainer.json b/.devcontainer/pgsql/devcontainer.json new file mode 100644 index 000000000..db7f84c89 --- /dev/null +++ b/.devcontainer/pgsql/devcontainer.json @@ -0,0 +1,44 @@ +{ + "name": "Development Jellyfin Server", + "image": "mcr.microsoft.com/devcontainers/dotnet:9.0-bookworm", + "dockerComposeFile": "docker-compose.yml", + // restores nuget packages, installs the dotnet workloads and installs the dev https certificate + "postStartCommand": "sudo dotnet restore; sudo dotnet workload update; sudo dotnet dev-certs https --trust; sudo bash \"./.devcontainer/install-ffmpeg.sh\"", + // reads the extensions list and installs them + "postAttachCommand": "cat .vscode/extensions.json | jq -r .recommendations[] | xargs -n 1 code --install-extension", + "forwardPorts": ["pgadmin:8081"], + "portsAttributes": { + "8081": { + "label": "pgAdmin", + "onAutoForward": "notify", + "requireLocalPort": true + }, + "8096": { + "label": "jellyfinapi", + "onAutoForward": "notify", + "requireLocalPort": true + } + }, + "features": { + "ghcr.io/devcontainers/features/dotnet:2": { + "version": "none", + "dotnetRuntimeVersions": "9.0", + "aspNetCoreRuntimeVersions": "9.0" + }, + "ghcr.io/devcontainers-contrib/features/apt-packages:1": { + "preserve_apt_list": false, + "packages": [ + "libfontconfig1" + ] + }, + "ghcr.io/devcontainers/features/docker-in-docker:2": { + "dockerDashComposeVersion": "v2" + }, + "ghcr.io/devcontainers/features/github-cli:1": {}, + "ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {} + }, + "hostRequirements": { + "memory": "8gb", + "cpus": 4 + } +} |
