Rovatiana/LearnPulse
1
1// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:2// https://github.com/microsoft/vscode-dev-containers/tree/v0.208.0/containers/ruby-rails-postgres3// Update the VARIANT arg in docker-compose.yml to pick a Ruby version4{5 "name": "Ruby on Rails & Postgres",6 "dockerComposeFile": "docker-compose.yml",7 "service": "app",8 "workspaceFolder": "/workspace",9 10 // Set *default* container specific settings.json values on container create.11 "settings": {12 "sqltools.connections": [13 {14 "name": "Rails Development Database",15 "driver": "PostgreSQL",16 "previewLimit": 50,17 "server": "localhost",18 "port": 5432,19 20 // update this to match config/database.yml21 "database": "pupilfirst",22 "username": "vscode"23 },24 {25 "name": "Rails Test Database",26 "driver": "PostgreSQL",27 "previewLimit": 50,28 "server": "localhost",29 "port": 5432,30 31 // update this to match config/database.yml32 "database": "pupilfirst_test",33 "username": "vscode"34 }35 ]36 },37 38 // Add the IDs of extensions you want installed when the container is created.39 "extensions": [40 "rebornix.Ruby",41 "mtxr.sqltools",42 "mtxr.sqltools-driver-pg"43 ],44 45 // Use 'forwardPorts' to make a list of ports inside the container available locally.46 // "forwardPorts": [7860, 5432],47 48 // Use 'postCreateCommand' to run commands after the container is created.49 "postCreateCommand": "bash .devcontainer/boot.sh",50 51 // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.52 "remoteUser": "vscode",53 "features": {54 "github-cli": "latest"55 }56}57 