Skip to content

Commit

Permalink
fix: elasticsearch path, build file
Browse files Browse the repository at this point in the history
  • Loading branch information
HungLV46 committed Aug 15, 2024
1 parent c197de5 commit f293d26
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
25 changes: 13 additions & 12 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,19 @@ services:
ports:
- 9200:9200

# be:
# image: ipscanbe
# depends_on:
# postgres:
# condition: service_healthy
# ports:
# - '3000:3000'
# environment:
# REDIS_URL: redis://redis:6379/1
# DATABASE_URL: 'postgresql://postgres:password@postgres:5432/ip-scan?schema=public'
# networks:
# - local
be:
image: ipscanbe
depends_on:
postgres:
condition: service_healthy
ports:
- '3000:3000'
environment:
REDIS_URL: redis://redis:6379/1
DATABASE_URL: 'postgresql://postgres:password@postgres:5432/ip-scan?schema=public'
ELASTICSEARCH_URL: http://elasticsearch:9200
networks:
- local

networks:
local:
Expand Down
2 changes: 1 addition & 1 deletion src/common/elastic-search.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { config } from '#configs/index';
import { Client } from '@elastic/elasticsearch';
import * as productIndex from 'elastic-search/indexes/products';
import * as productIndex from '#root/elastic-search/indexes/products/index';

let elasticsearch: Client;
if (config.elasticsearchUrl) {
Expand Down
2 changes: 1 addition & 1 deletion src/elastic-search/indexes/products/base/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BuildDocumentData, DocumentBuilder } from './../../base/index';
import { BaseDocument } from 'elastic-search/indexes/base';
import { BaseDocument } from '#root/elastic-search/indexes/base/index';

export interface ProductDocument extends BaseDocument {
name: string;
Expand Down

0 comments on commit f293d26

Please sign in to comment.