|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
| 2 | +// README at: https://github.com/devcontainers/templates/tree/main/src/ruby |
| 3 | +{ |
| 4 | + "name": "CodeHarbor", |
| 5 | + "dockerComposeFile": "compose.yaml", |
| 6 | + "service": "rails-app", |
| 7 | + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", |
| 8 | + |
| 9 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 10 | + "features": { |
| 11 | + "ghcr.io/devcontainers/features/git-lfs:1": {}, |
| 12 | + "ghcr.io/devcontainers/features/github-cli:1": {}, |
| 13 | + "ghcr.io/rails/devcontainer/features/activestorage": {}, |
| 14 | + "ghcr.io/devcontainers/features/node:1": { |
| 15 | + "installYarnUsingApt": false |
| 16 | + }, |
| 17 | + "ghcr.io/rails/devcontainer/features/postgres-client": {} |
| 18 | + }, |
| 19 | + |
| 20 | + "containerEnv": { |
| 21 | + "COREPACK_ENABLE_DOWNLOAD_PROMPT": "0", |
| 22 | + "CAPYBARA_SERVER_PORT": "45678", |
| 23 | + "SELENIUM_HOST": "selenium", |
| 24 | + "DB_HOST": "postgres" |
| 25 | + }, |
| 26 | + |
| 27 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 28 | + "forwardPorts": [3045, 7500], |
| 29 | + |
| 30 | + "portsAttributes": { |
| 31 | + "3045": { |
| 32 | + "label": "webpack-dev-server" |
| 33 | + }, |
| 34 | + "7500": { |
| 35 | + "label": "rails-server" |
| 36 | + } |
| 37 | + }, |
| 38 | + |
| 39 | + // Configure tool-specific properties. |
| 40 | + // "customizations": {}, |
| 41 | + |
| 42 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 43 | + // "remoteUser": "root", |
| 44 | + |
| 45 | + |
| 46 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 47 | + "postCreateCommand": "bin/setup" |
| 48 | +} |
0 commit comments