|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose
|
3 | 3 | {
|
4 |
| - "name": "Existing Docker Compose (Extend)", |
| 4 | + "name": "Tailchat Devcontainer", |
5 | 5 |
|
6 | 6 | // Update the 'dockerComposeFile' list if you have more compose files or use different names.
|
7 | 7 | // The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
|
|
18 | 18 | "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
19 | 19 | "features": {
|
20 | 20 | "ghcr.io/devcontainers/features/github-cli:1": {}
|
21 |
| - } |
| 21 | + }, |
| 22 | + "containerEnv": { |
| 23 | + "TRANSPORTER": "redis://redis:6379", |
| 24 | + "REDIS_URL": "redis://redis:6379", |
| 25 | + "MONGO_URL": "mongodb://mongo/tailchat", |
| 26 | + "MINIO_URL": "minio:9000", |
| 27 | + "MINIO_USER": "tailchat", |
| 28 | + "MINIO_PASS": "com.msgbyte.tailchat", |
| 29 | + "ADMIN_USER": "tailchat", |
| 30 | + "ADMIN_PASS": "tailchat" |
| 31 | + }, |
22 | 32 |
|
23 | 33 | // Features to add to the dev container. More info: https://containers.dev/features.
|
24 | 34 | // "features": {},
|
25 | 35 |
|
26 | 36 | // Use 'forwardPorts' to make a list of ports inside the container available locally.
|
27 |
| - // "forwardPorts": [], |
| 37 | + "forwardPorts": [11011, 11000], |
28 | 38 |
|
29 | 39 | // Uncomment the next line if you want start specific services in your Docker Compose config.
|
30 | 40 | // "runServices": [],
|
|
33 | 43 | // "shutdownAction": "none",
|
34 | 44 |
|
35 | 45 | // Uncomment the next line to run commands after the container is created.
|
36 |
| - // "postCreateCommand": "cat /etc/os-release", |
| 46 | + "postCreateCommand": "pnpm install", |
37 | 47 |
|
38 | 48 | // Configure tool-specific properties.
|
39 |
| - // "customizations": {}, |
| 49 | + "customizations": { |
| 50 | + "vscode": { |
| 51 | + "extensions": [ |
| 52 | + "maattdd.gitless", |
| 53 | + "esbenp.prettier-vscode", |
| 54 | + "njzy.stats-bar", |
| 55 | + "bradlc.vscode-tailwindcss", |
| 56 | + "dbaeumer.vscode-eslint" |
| 57 | + ] |
| 58 | + } |
| 59 | + }, |
40 | 60 |
|
41 | 61 | // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
|
42 | 62 | // "remoteUser": "devcontainer"
|
|
0 commit comments