// For format details, see https://aka.ms/devcontainer.json.
{
  "name": "tiny_tds project development",
  "dockerComposeFile": "compose.yaml",
  "service": "tiny_tds",
  "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

  // Features to add to the dev container. More info: https://containers.dev/features.
  "features": {
    "ghcr.io/devcontainers/features/docker-in-docker:2": {
      // Moby is not installable in Debian 11
      "moby": false
    }
  },

  "containerEnv": {
    "TINYTDS_UNIT_HOST": "sqlserver",
    "TOXIPROXY_HOST": "toxiproxy"
  },

  // Use 'forwardPorts' to make a list of ports inside the container available locally.
  // This can be used to network with other containers or the host.
  // "forwardPorts": [3000, 5432],

  // Use 'postCreateCommand' to run commands after the container is created.
  "postCreateCommand": ".devcontainer/boot.sh",

  // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
  // "remoteUser": "root"
}