-
Notifications
You must be signed in to change notification settings - Fork 138
/
docker-compose-eureka.yml
55 lines (51 loc) · 1.42 KB
/
docker-compose-eureka.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
# permit depends_on/condition: service_healthy
version: '2.4'
services:
eureka:
image: ghcr.io/openzipkin/zipkin-eureka
container_name: eureka
# Uncomment to require authentication
# environment:
# - EUREKA_USERNAME=username
# - EUREKA_PASSWORD=password
# Uncomment to expose the eureka port for testing
# ports:
# - 8761:8761
zipkin:
extends:
file: docker-compose.yml
service: zipkin
environment:
- EUREKA_SERVICE_URL=http://eureka:8761/eureka/v2
- EUREKA_HOSTNAME=zipkin
# Uncomment to authenticate eureka
# - EUREKA_SERVICE_URL=http://username:password@eureka:8761/eureka/v2
depends_on:
eureka:
condition: service_healthy
frontend:
extends:
file: docker-compose.yml
service: frontend
environment:
- EUREKA_SERVICE_URL=http://eureka:8761/eureka/v2
# Uncomment to authenticate eureka
# - EUREKA_SERVICE_URL=http://username:password@eureka:8761/eureka/v2
ports:
- 8081:8081
depends_on:
backend:
condition: service_healthy
eureka:
condition: service_healthy
backend:
extends:
file: docker-compose.yml
service: backend
environment:
- EUREKA_SERVICE_URL=http://eureka:8761/eureka/v2
# Uncomment to authenticate eureka
# - EUREKA_SERVICE_URL=http://username:password@eureka:8761/eureka/v2
depends_on:
eureka:
condition: service_healthy