|
| 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": "arc_platform", |
| 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/github-cli:1": {}, |
| 12 | + "ghcr.io/rails/devcontainer/features/activestorage": {}, |
| 13 | + "ghcr.io/devcontainers/features/node:1": {}, |
| 14 | + "ghcr.io/rails/devcontainer/features/postgres-client": {} |
| 15 | + }, |
| 16 | + |
| 17 | + "containerEnv": { |
| 18 | + "CAPYBARA_SERVER_PORT": "45678", |
| 19 | + "SELENIUM_HOST": "selenium", |
| 20 | + "REDIS_URL": "redis://redis:6379/1", |
| 21 | + "DB_HOST": "postgres" |
| 22 | + }, |
| 23 | + |
| 24 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 25 | + "forwardPorts": [3000, 5432, 6379], |
| 26 | + |
| 27 | + // Configure tool-specific properties. |
| 28 | + // "customizations": {}, |
| 29 | + |
| 30 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 31 | + // "remoteUser": "root", |
| 32 | + |
| 33 | + |
| 34 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 35 | + "postCreateCommand": "bin/setup" |
| 36 | +} |
0 commit comments