// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node-postgres
{
  "name": "bun",
  "dockerComposeFile": "compose.yaml",
  "service": "app",
  "shutdownAction": "stopCompose",
  "workspaceFolder": "/workspace",
  // Features to add to the dev container. More info: https://containers.dev/features.
  // "features": {},
  // Use 'forwardPorts' to make a list of ports inside the container available locally.
  // This can be used to network with other containers or with the host.
  "forwardPorts": [
    3000,
    5432
  ],
  // Use 'postCreateCommand' to run commands after the container is created.
  "postCreateCommand": "bun i",
  // Use 'postStartCommand' to run commands after the container is started.
  "postStartCommand": "bun run dev",
  // Configure tool-specific properties.
  "customizations": {
    "vscode": {
      "extensions": [
        "oven.bun-vscode",
        "dbaeumer.vscode-eslint",
        "bradlc.vscode-tailwindcss",
        "YoavBls.pretty-ts-errors",
        "usernamehw.errorlens",
        "Prisma.prisma",
        "esbenp.prettier-vscode",
        "dsznajder.es7-react-js-snippets",
        "csstools.postcss"
      ]
    }
  },
  // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
  "remoteUser": "bun",
  "containerEnv": {
    "SHELL": "/bin/bash"
  }
}