{
  "name": "Zipline Codespace",
  "dockerComposeFile": "docker-compose.yml",
  "service": "app",
  "workspaceFolder": "/zipline",
  "features": {
    "ghcr.io/devcontainers/features/common-utils:2": {
      "username": "zipline"
    },
    "ghcr.io/devcontainers/features/docker-in-docker:1": {
      "dockerDashComposeVersion": "v2",
      "installDockerBuildx": true
    }
  },
  "customizations": {
    "vscode": {
      "settings": {
        "[typescript]": {
          "editor.defaultFormatter": "esbenp.prettier-vscode"
        },
        "[typescriptreact]": {
          "editor.defaultFormatter": "esbenp.prettier-vscode"
        },
        "editor.defaultFormatter": "esbenp.prettier-vscode",
        "editor.formatOnSave": true,
        "files.autoSave": "afterDelay",
        "terminal.integrated.persistentSessionReviveProcess": "never",
        "terminal.integrated.defaultProfile.linux": "zsh",
        "terminal.integrated.profiles.linux": {
          "zsh": {
            "path": "/bin/zsh",
            "env": {
              "ZSH_THEME": "devcontainers"
            }
          }
        }
      },
      "extensions": ["prisma.prisma", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
    }
  },
  "remoteUser": "zipline",
  "updateRemoteUserUID": true,
  "remoteEnv": {
    "CORE_DATABASE_URL": "postgres://postgres:postgres@localhost/zip10"
  },
  "portsAttributes": {
    "3000": {
      "label": "Zipline",
      "onAutoForward": "openBrowser"
    },
    "5432": {
      "label": "Postgres"
    }
  },
  "postCreateCommand": "sudo chown -R zipline:zipline /zipline && yarn install"
}
