32 lines
1.2 KiB
JSON
32 lines
1.2 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/rust-postgres
|
|
{
|
|
"name": "Rust and PostgreSQL",
|
|
"dockerComposeFile": "docker-compose.yml",
|
|
"service": "app",
|
|
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
|
"features": {
|
|
"ghcr.io/meaningful-ooo/devcontainer-features/fish:1": {},
|
|
"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {},
|
|
"ghcr.io/nikobockerman/devcontainer-features/fish-persistent-data:2": {}
|
|
},
|
|
// 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.
|
|
"forwardPorts": [
|
|
8080, // pgadmin
|
|
5150 // loco app
|
|
],
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
"postCreateCommand": "cargo install loco && cargo install sea-orm-cli",
|
|
// Configure tool-specific properties.
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"inferrinizzard.prettier-sql-vscode"
|
|
]
|
|
}
|
|
},
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
// "remoteUser": "root"
|
|
} |