Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector type demo docker #63

Open
wants to merge 2 commits into
base: zhongzc/vector-type-demo
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.env
*.log
*~
29 changes: 29 additions & 0 deletions vector-type-search/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
services:
greptimedb:
image: docker.io/greptime/greptimedb:v0.9.5
command: standalone start --http-addr=0.0.0.0:4000 --rpc-addr=0.0.0.0:4001 --mysql-addr=0.0.0.0:4002 --postgres-addr 0.0.0.0:4003
ports:
- 4000:4000
- 4001:4001
- 4002:4002
- 4003:4003
networks:
- demo-network
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:4000/health"]
interval: 3s
timeout: 3s
retries: 5

notebook:
image: quay.io/jupyter/base-notebook:2024-11-19
command: jupyter notebook --ip 0.0.0.0 --no-browser --allow-root
ports:
- 8888:8888
networks:
- demo-network
volumes:
- ./notebooks:/home/jovyan/work

networks:
demo-network:
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"import pymysql\n",
"def get_connection():\n",
" connection = pymysql.connect(\n",
" host = \"127.0.0.1\",\n",
" host = \"greptimedb\",\n",
" port = 4002,\n",
" user = \"root\",\n",
" database = \"public\",\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"import pymysql\n",
"def get_connection():\n",
" connection = pymysql.connect(\n",
" host = \"127.0.0.1\",\n",
" host = \"greptimedb\",\n",
" port = 4002,\n",
" user = \"root\",\n",
" database = \"public\",\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"import pymysql\n",
"def get_connection():\n",
" connection = pymysql.connect(\n",
" host = \"127.0.0.1\",\n",
" host = \"greptimedb\",\n",
" port = 4002,\n",
" user = \"root\",\n",
" database = \"public\",\n",
Expand Down