|
| 1 | +{ |
| 2 | + "name": "Workflow Builder", |
| 3 | + "build": { "dockerfile": "./Dockerfile" }, |
| 4 | + |
| 5 | + "customizations": { |
| 6 | + "vscode": { |
| 7 | + "settings": { |
| 8 | + "terminal.integrated.defaultProfile.linux": "zsh" |
| 9 | + }, |
| 10 | + "extensions": [ |
| 11 | + "oven.bun-vscode", |
| 12 | + "dbaeumer.vscode-eslint", |
| 13 | + "esbenp.prettier-vscode", |
| 14 | + "zardoy.ts-essential-plugins", |
| 15 | + "bradlc.vscode-tailwindcss", |
| 16 | + "vscode-icons-team.vscode-icons", |
| 17 | + "unifiedjs.vscode-mdx" |
| 18 | + ] |
| 19 | + } |
| 20 | + }, |
| 21 | + |
| 22 | + "remoteUser": "node", |
| 23 | + |
| 24 | + "features": { |
| 25 | + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}, |
| 26 | + "ghcr.io/devcontainers/features/git:1": {}, |
| 27 | + "ghcr.io/devcontainers/features/python:1": { "version": "3.12" } |
| 28 | + }, |
| 29 | + "mounts": [ |
| 30 | + "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind", |
| 31 | + "source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind" |
| 32 | + ], |
| 33 | + "postCreateCommand": "sudo chmod 666 /var/run/docker-host.sock && sudo usermod -aG docker node || true", |
| 34 | + "runArgs": ["--add-host=host.docker.internal:host-gateway"], |
| 35 | + |
| 36 | + "remoteEnv": { |
| 37 | + "DATABASE_URL": "postgres://postgres:postgres@host.docker.internal:54422/postgres", |
| 38 | + "SUPABASE_URL": "http://host.docker.internal:54421", |
| 39 | + "DOCKER_HOST": "unix:///var/run/docker-host.sock" |
| 40 | + }, |
| 41 | + "postAttachCommand": "bash -c 'if [ -z \"$(git config --global user.name)\" ]; then read -p \"Enter your git name: \" git_name && git config --global user.name \"$git_name\" || true; fi; if [ -z \"$(git config --global user.email)\" ]; then read -p \"Enter your git email: \" git_email && git config --global user.email \"$git_email\" || true; fi'", |
| 42 | + "portsAttributes": { |
| 43 | + "5173": { "label": "Vite Application" }, |
| 44 | + "6006": { "label": "Storybook" }, |
| 45 | + "54421": { "label": "API" }, |
| 46 | + "54422": { "label": "Postgres Database" }, |
| 47 | + "54423": { "label": "Supabase Studio" }, |
| 48 | + "54424": { "label": "Email Testing" } |
| 49 | + } |
| 50 | +} |
0 commit comments