Skip to content

Commit 0edb4cb

Browse files
committedJun 23, 2022
chore: env for search service
1 parent f2214f2 commit 0edb4cb

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed
 

‎docker-compose.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ services:
2121
- ./:/workspace
2222
entrypoint: yarn
2323

24+
elastic:
25+
image: elasticsearch:7.17.0
26+
environment:
27+
- xpack.security.transport.ssl.enabled=false
28+
- xpack.security.enabled=false
29+
- discovery.type=single-node
30+
ports:
31+
- 9200:9200
32+
- 9300:9300
33+
2434
mailhog:
2535
image: mailhog/mailhog
2636
logging:
@@ -252,7 +262,7 @@ services:
252262
- collaboration
253263
- files-service
254264
- portfolio
255-
- search
265+
- search-service
256266
ports:
257267
- 4000:3000
258268

@@ -342,17 +352,19 @@ services:
342352
- rabbitmq
343353
- db
344354

345-
search:
355+
search-service:
346356
image: node:16-alpine
347357
working_dir: /workspace
348358
volumes:
349359
- ./:/workspace
350360
entrypoint: yarn workspace @search/service dev
351361
environment:
352362
- DB_HOST=db
363+
- ELASTICSEARCH_HOST=http://elastic:9200
353364
depends_on:
354365
- rabbitmq
355366
- db
367+
- elastic
356368

357369
files-service:
358370
image: node:16-alpine

0 commit comments

Comments
 (0)