forked from digma-ai/forkof-spring-petclinic
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
44 lines (42 loc) · 1.38 KB
/
docker-compose.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
version: '3'
services:
app:
build: ./
environment:
OTEL_SERVICE_NAME: "PetClinic"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://host.docker.internal:5050"
# Logs are disabled by default
OTEL_LOGS_EXPORTER: "otlp"
# Digma entries
CODE_PACKAGE_PREFIXES: "org.springframework.samples.petclinic"
DEPLOYMENT_ENV: "SAMPLE_ENV"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9753/" ]
interval: 20s
timeout: 10s
retries: 4
start_period: 5s
ports:
- "9753:9753"
entrypoint: java -jar -javaagent:/opentelemetry-javaagent.jar -Dotel.javaagent.extensions=/digma-otel-agent-extension.jar app.jar
extra_hosts:
- "host.docker.internal:host-gateway"
tester:
build: ./
environment:
OTEL_SERVICE_NAME: "PetClinicTester"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://host.docker.internal:5050"
# Logs are disabled by default
OTEL_LOGS_EXPORTER: "otlp"
PETSHOP_URL: "http://app:9753"
# Digma entries
CODE_PACKAGE_PREFIXES: "org.springframework.samples.petclinic"
DEPLOYMENT_ENV: "SAMPLE_ENV"
entrypoint: java -cp app.jar -Dloader.main=petclinic.client.ClientTester org.springframework.boot.loader.PropertiesLauncher
links:
- app
depends_on:
app:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"