Files
mobilizon-frontend/.devcontainer/devcontainer.json
Ian Knight fce01fd387 Issue #1630: Update Dev Container configuration
- Update Elixer & Phoenix versions.
- Update devcontainer configuration to remove deprecated syntax.
- Migrate devcontainer-specific setup from Dockerfile to devcontainer
  feature config in line with current best practice.
- Verify able to compile.
2025-11-29 19:14:27 +01:00

62 lines
1.8 KiB
JSON

// For format details, see https://aka.ms/devcontainer.json.
{
"name": "Elixir, Phoenix, Node.js & PostgresSQL (Community)",
"dockerComposeFile": "docker-compose.yml",
"service": "elixir",
"workspaceFolder": "/workspace",
// Configure tool-specific properties.
"customizations": {
"vscode": {
// Container specific settings.json values.
"settings": {
"sqltools.connections": [
{
"name": "Container database",
"driver": "PostgreSQL",
"previewLimit": 50,
"server": "localhost",
"port": 5432,
"database": "postgres",
"username": "postgres",
"password": "postgres"
}
]
},
// VSCode extensions to be automatically installed.
"extensions": [
"jakebecker.elixir-ls",
"mtxr.sqltools",
"mtxr.sqltools-driver-pg"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [4000, 4001, 5432],
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": "true",
"username": "vscode",
"userUid": "1000",
"userGid": "1000",
"upgradePackages": "true"
},
"ghcr.io/devcontainers/features/git:1": {
"version": "latest",
"ppa": "false"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "20"
}
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "mix local.hex --force && mix local.rebar --force && mix archive.install --force hex phx_new 1.7.18",
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}