-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
60 lines (57 loc) · 1.28 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
eureka:
image: momipochi/java-microservice-eurekaserver
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- SPRING_PROFILES_ACTIVE=docker
build:
context: ./eurekaserver
dockerfile: Dockerfile
ports:
- "8761:8761"
networks:
- eureka-network
apigateway:
extra_hosts:
- "host.docker.internal:host-gateway"
image: momipochi/java-microservice-apigateway
build:
context: ./apigateway
dockerfile: Dockerfile
ports:
- "8083:8083"
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
- eureka
networks:
- eureka-network
healthcheck:
test: ["CMD", "curl", "-I", "http://eureka:8761"]
interval: 30s
timeout: 10s
retries: 5
demo:
extra_hosts:
- "host.docker.internal:host-gateway"
image: momipochi/java-microservice-demo
environment:
- SPRING_PROFILES_ACTIVE=docker
build:
context: ./demo
dockerfile: Dockerfile
ports:
- "8081:8081"
networks:
- eureka-network
depends_on:
- eureka
healthcheck:
test: ["CMD", "curl", "-I", "http://eureka:8761"]
interval: 30s
timeout: 10s
retries: 5
networks:
eureka-network:
driver: bridge