Skip to content

Commit

Permalink
Update devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed May 9, 2024
1 parent 81837e9 commit 853ca4a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"name": "unremarkable-ideaogram-assistant",
"build": {
"dockerfile": "Dockerfile",
"context": "."
},
"name": "experts",
"dockerComposeFile": "docker-compose.yml",
"service": "experts",
"containerEnv": {
"NODE_ENV": "development",
"NODE_OPTIONS": "--no-warnings --experimental-vm-modules",
Expand All @@ -23,5 +21,10 @@
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {}
},
"remoteUser": "vscode"
"forwardPorts": [9200, 9600, 5173, 5601, 3000],
"remoteUser": "vscode",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"mounts": [
"source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,consistency=cached"
]
}
37 changes: 37 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
services:
experts:
build: { context: ., dockerfile: Dockerfile }
command: sleep infinity
user: vscode
depends_on:
opensearch: { condition: service_started }
opensearch:
image: public.ecr.aws/opensearchproject/opensearch:2.11.0
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-node1
- discovery.type=single-node
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
restart: unless-stopped
ports:
- 9200:9200
- 9600:9600
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- opensearch-data:/usr/share/opensearch/data
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.11.0
restart: unless-stopped
ports:
- 5601:5601
environment:
OPENSEARCH_HOSTS: '["https://opensearch:9200"]'
volumes:
opensearch-data:

0 comments on commit 853ca4a

Please sign in to comment.