Skip to content

Commit 216923d

Browse files
committed
chore(devcontainer): add env and more config
1 parent 766d792 commit 216923d

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.devcontainer/devcontainer.json

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose
33
{
4-
"name": "Existing Docker Compose (Extend)",
4+
"name": "Tailchat Devcontainer",
55

66
// Update the 'dockerComposeFile' list if you have more compose files or use different names.
77
// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
@@ -18,13 +18,23 @@
1818
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
1919
"features": {
2020
"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+
},
2232

2333
// Features to add to the dev container. More info: https://containers.dev/features.
2434
// "features": {},
2535

2636
// Use 'forwardPorts' to make a list of ports inside the container available locally.
27-
// "forwardPorts": [],
37+
"forwardPorts": [11011, 11000],
2838

2939
// Uncomment the next line if you want start specific services in your Docker Compose config.
3040
// "runServices": [],
@@ -33,10 +43,20 @@
3343
// "shutdownAction": "none",
3444

3545
// Uncomment the next line to run commands after the container is created.
36-
// "postCreateCommand": "cat /etc/os-release",
46+
"postCreateCommand": "pnpm install",
3747

3848
// 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+
},
4060

4161
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
4262
// "remoteUser": "devcontainer"

0 commit comments

Comments
 (0)