Skip to content

Commit

Permalink
build: improve docker-related files
Browse files Browse the repository at this point in the history
  • Loading branch information
zAlweNy26 committed Oct 16, 2024
1 parent 0f78334 commit b2d1f5d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 26 deletions.
20 changes: 6 additions & 14 deletions compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,25 @@
services:
ccat-ts-dev:
ccat:
build:
context: .
dockerfile: ./Dockerfile.dev
container_name: ccat_ts
container_name: ccat_ts_dev
env_file:
- .env
environment:
- FORCE_COLOR=1
- CORE_HOST=${CORE_HOST:-localhost}
- CORE_PORT=${CORE_PORT:-1865}
- CORE_USE_SECURE_PROTOCOLS=${CORE_USE_SECURE_PROTOCOLS:-}
- QDRANT_HOST=${QDRANT_HOST:-ccat_ts_vector_memory}
- QDRANT_HOST=${QDRANT_HOST:-ccat_ts_vector_memory_dev}
- QDRANT_PORT=${QDRANT_PORT:-6333}
- TZ=${TIMEZONE:-UTC}
- API_KEY=${API_KEY:-}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- DEBUG=${DEBUG:-true}
- SAVE_MEMORY_SNAPSHOTS=${SAVE_MEMORY_SNAPSHOTS:-false}
ports:
- ${CORE_PORT:-1865}:80
volumes:
- .:/app
restart: unless-stopped
depends_on:
- ccat-ts-vector-memory-dev
ccat-ts-vector-memory-dev:
- vector-memory
vector-memory:
image: qdrant/qdrant:v1.12.0
container_name: ccat_ts_vector_memory
container_name: ccat_ts_vector_memory_dev
env_file:
- .env
environment:
Expand Down
14 changes: 3 additions & 11 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
services:
ccat-ts:
ccat:
build:
context: .
dockerfile: ./Dockerfile
Expand All @@ -8,24 +8,16 @@ services:
- .env
environment:
- FORCE_COLOR=1
- CORE_HOST=${CORE_HOST:-localhost}
- CORE_PORT=${CORE_PORT:-1865}
- CORE_USE_SECURE_PROTOCOLS=${CORE_USE_SECURE_PROTOCOLS:-}
- QDRANT_HOST=${QDRANT_HOST:-ccat_ts_vector_memory}
- QDRANT_PORT=${QDRANT_PORT:-6333}
- TZ=${TIMEZONE:-UTC}
- API_KEY=${API_KEY:-}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- DEBUG=${DEBUG:-true}
- SAVE_MEMORY_SNAPSHOTS=${SAVE_MEMORY_SNAPSHOTS:-false}
ports:
- ${CORE_PORT:-1865}:80
volumes:
- .:/app
restart: unless-stopped
depends_on:
- ccat-ts-vector-memory
ccat-ts-vector-memory:
- vector-memory
vector-memory:
image: qdrant/qdrant:v1.12.0
container_name: ccat_ts_vector_memory
env_file:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"dist/**"
],
"scripts": {
"build": "bun build --compile --minify --sourcemap --target bun --outfile ccat ./src/index.ts",
"build": "bun build --compile --minify --sourcemap --outfile ccat ./src/main.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "vitest dev --exclude \"**/test/api/**\" --run",
Expand Down

0 comments on commit b2d1f5d

Please sign in to comment.