aboutsummaryrefslogtreecommitdiff
path: root/.devcontainer/pgsql/devcontainer.json
blob: 3dd91d975518ed281e172010b52621bda91db705 (plain)
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
{
    "name": "Development Jellyfin Server",
    "dockerComposeFile": "docker-compose.yaml",
    "service": "app",
    "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
    // 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
    }
}