49 lines
1.7 KiB
JSON
49 lines
1.7 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby-rails-postgres
|
|
{
|
|
"name": "Ruby on Rails & Postgres",
|
|
"dockerComposeFile": "docker-compose.yml",
|
|
"service": "app",
|
|
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
|
"features": {
|
|
"ghcr.io/meaningful-ooo/devcontainer-features/fish:1": {},
|
|
"ghcr.io/nikobockerman/devcontainer-features/fish-persistent-data:2": {},
|
|
"ghcr.io/devcontainers-extra/features/npm-package:1": {
|
|
"package": "backlog.md"
|
|
}
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"Shopify.ruby-extensions-pack",
|
|
"dbaeumer.vscode-eslint",
|
|
"aliariff.vscode-erb-beautify",
|
|
"bradlc.vscode-tailwindcss",
|
|
"KoichiSasada.vscode-rdbg",
|
|
"qwtel.sqlite-viewer",
|
|
"esbenp.prettier-vscode",
|
|
"ms-azuretools.vscode-docker",
|
|
"1YiB.rust-bundle",
|
|
"rust-lang.rust-analyzer"
|
|
]
|
|
}
|
|
},
|
|
// 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": "bundle install && rake db:setup",
|
|
"postCreateCommand": ".devcontainer/post-create.sh",
|
|
"forwardPorts": [
|
|
3000, // rails
|
|
3001, // thrust
|
|
9394, // prometheus exporter
|
|
"pgadmin:8080", // pgadmin
|
|
"grafana:3100", // grafana
|
|
"prometheus:9090" // prometheus
|
|
]
|
|
// Configure tool-specific properties.
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
// "remoteUser": "root"
|
|
}
|