Skip to content

Commit

Permalink
reorganizing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Gian Paolo Santopaolo committed May 14, 2024
1 parent 6f07083 commit d5a8224
Show file tree
Hide file tree
Showing 18 changed files with 168 additions and 238 deletions.
1 change: 0 additions & 1 deletion .devcontainer.json

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ __pycache__/
# Ignore model directories
ai/embedder/models/

# ignore data directory
data

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added config/chunker.env
Empty file.
Empty file added config/embedder.env
Empty file.
93 changes: 0 additions & 93 deletions docker-compose-pulsar.yaml

This file was deleted.

121 changes: 0 additions & 121 deletions docker-compose.yaml

This file was deleted.

17 changes: 17 additions & 0 deletions docker/docker-compose-cockroach.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3.8' # Use Docker Compose file version 3.8

networks:
dev-network:
driver: bridge

services:
cockroach:
image: cockroachdb/cockroach:latest-v23.2
ports:
- "26257:26257"
- "28080:8080"
command: start-single-node --insecure
volumes:
- "../data/cockroach:/cockroach/cockroach-data"
networks:
- dev-network
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
version: '3.5'
version: '3.8' # Use Docker Compose file version 3.8

networks:
dev-network:
driver: bridge

services:
etcd:
Expand All @@ -9,8 +13,10 @@ services:
- ETCD_AUTO_COMPACTION_RETENTION=1000
- ETCD_QUOTA_BACKEND_BYTES=4294967296
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
- "../data/etcd:/etcd"
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
networks:
- dev-network

minio:
container_name: milvus-minio
Expand All @@ -19,13 +25,15 @@ services:
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/minio:/minio_data
- "../data/minio:/minio_data"
command: minio server /minio_data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
- dev-network

standalone:
container_name: milvus-standalone
Expand All @@ -35,13 +43,23 @@ services:
ETCD_ENDPOINTS: etcd:2379
MINIO_ADDRESS: minio:9000
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus:/var/lib/milvus
- "../data/milvus:/var/lib/milvus"
ports:
- "19530:19530"
depends_on:
- "etcd"
- "minio"

networks:
default:
name: milvus
networks:
- dev-network

milvus-admin:
image: milvusdb/milvus-insight:latest
environment:
HOST_URL: http://localhost:8000
MILVUS_URL: host.docker.internal:19530
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "8000:3000"
networks:
- dev-network
31 changes: 31 additions & 0 deletions docker/docker-compose-nats.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: '3.8' # Use Docker Compose file version 3.8

networks:
dev-network:
driver: bridge

services:
nats:
image: nats:latest # Use the latest NATS image
container_name: nats
ports:
- "4222:4222" # Client connections to NATS
- "8222:8222" # HTTP monitoring port for NATS
- "6222:6222" # Cluster port for NATS
volumes:
- nats-storage:/data/nats
command:
- "--name=nats"
- "--http_port=8222"
- "--js"
- "--sd=/data/nats"
networks:
- dev-network

volumes:
nats-storage:
driver: local
driver_opts:
type: none
o: bind
device: ../data/nats
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@ networks:
driver: bridge

services:
nats-server:
image: nats:latest # Use the latest NATS image
container_name: nats-server
ports:
- "4222:4222" # Client connections to NATS
- "8222:8222" # HTTP monitoring port for NATS
- "6222:6222" # Cluster port for NATS
networks:
- dev-net

#embedder
embedder:
# build: .
Expand All @@ -22,7 +12,9 @@ services:
ports:
- "50051:50051"
volumes:
- /models
- ../data//models
env_file:
- ../config/embedder.env
networks:
- dev-net
# depends_on:
Expand All @@ -32,4 +24,4 @@ services:
#PULSAR_CONNECTION_STRING: ${PULSAR_CONNECTION_STRING}
PULSAR_CONNECTION_STRING: "pulsar://broker:6650"
#PULSAR_CONNECTION_STRING: "pulsar://127.0.0.1:6650"
#command: python ./embedd_service.py

Loading

0 comments on commit d5a8224

Please sign in to comment.