-
Notifications
You must be signed in to change notification settings - Fork 451
/
Copy pathdocker-compose.search.yml
49 lines (46 loc) · 1.36 KB
/
docker-compose.search.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: "3.9"
services:
search:
image: ghcr.io/nashtech-garage/yas-search:latest
entrypoint: [ "./wait-for-it.sh", "elasticsearch:9200", "--timeout=300", "--", "java", "-jar", "/app.jar" ]
environment:
- SERVER_SERVLET_CONTEXT_PATH=/search
- YAS_PUBLIC_URL=${YAS_PUBLIC_API_URL}/search
- YAS_SERVICES_PRODUCT
- SERVER_PORT
- LOGGING_CONFIG
- JAVA_TOOL_OPTIONS
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_EXPORTER_OTLP_PROTOCOL
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
- OTEL_RESOURCE_ATTRIBUTES
- OTEL_SERVICE_NAME=search-service
- OTEL_LOGS_EXPORTER
- OTEL_TRACES_EXPORTER
- OTEL_METRICS_EXPORTER
- OTEL_INSTRUMENTATION_LOGBACK-MDC_ADD-BAGGAGE
- OTEL_JAVAAGENT_LOGGING
- OTEL_JAVAAGENT_ENABLED
- OTEL_JAVAAGENT_DEBUG
volumes:
- ./docker/libs/opentelemetry-javaagent.jar:/opentelemetry-javaagent.jar
- ./deployment/app-config:/app-config
networks:
- yas-network
elasticsearch:
image: elasticsearch:8.6.2
volumes:
- esdata:/usr/share/elasticsearch/data
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
- "discovery.type=single-node"
ports:
- "9200:9200"
- "9300:9300"
networks:
- yas-network
networks:
yas-network:
volumes:
esdata: