-
Notifications
You must be signed in to change notification settings - Fork 139
/
docker-compose-eureka.test.yml
62 lines (55 loc) · 1.4 KB
/
docker-compose-eureka.test.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
50
51
52
53
54
55
56
57
58
59
60
61
# permit depends_on/condition: service_healthy
version: '2.4'
# This configures examples so that they use Eureka to discover the Zipkin
# endpoint.
services:
sut:
extends:
file: docker-compose.base.yml
service: sut
depends_on:
get_frontend:
condition: service_started
get_frontend:
extends:
file: docker-compose.base.yml
service: get_frontend
depends_on:
frontend:
condition: service_healthy
frontend:
extends:
file: docker-compose.base.yml
service: frontend
environment:
- EUREKA_SERVICE_URL=http://testuser:testpass@eureka:8761/eureka/v2
depends_on:
backend:
condition: service_healthy
backend:
extends:
file: docker-compose.base.yml
service: backend
environment:
- EUREKA_SERVICE_URL=http://testuser:testpass@eureka:8761/eureka/v2
depends_on:
zipkin:
condition: service_healthy
eureka:
condition: service_healthy
zipkin:
extends:
file: docker-compose.base.yml
service: zipkin
environment:
- EUREKA_SERVICE_URL=http://testuser:testpass@eureka:8761/eureka/v2
- EUREKA_HOSTNAME=zipkin
depends_on:
eureka:
condition: service_healthy
eureka:
image: ghcr.io/openzipkin/zipkin-eureka
container_name: eureka
environment:
- EUREKA_USERNAME=testuser
- EUREKA_PASSWORD=testpass