-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (50 loc) · 1.08 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
45
46
47
48
49
50
version: '3'
services:
configserver:
image: mufasa1976/spring-cloud-example-configserver
hostname: ${CONFIGSERVER_HOST}
volumes:
- "/tmp:/tmp"
ports:
- "8888:8888"
command: [--debug]
eureka:
image: mufasa1976/spring-cloud-example-eureka
hostname: ${EUREKA_HOST}
volumes:
- "/tmp:/tmp"
ports:
- "8761:8761"
depends_on:
- configserver
environment:
- CONFIGSERVER_URL
- EUREKA_HOST
command: [--spring.profiles.active=cloud, --debug]
service:
image: mufasa1976/spring-cloud-example-service-impl
hostname: service
volumes:
- "/tmp:/tmp"
depends_on:
- configserver
- eureka
environment:
- CONFIGSERVER_URL
- EUREKA_HOST
command: [--spring.profiles.active=cloud, --debug]
turbine:
image: mufasa1976/spring-cloud-example-turbine
hostname: turbine
volumes:
- "/tmp:/tmp"
ports:
- "8080:8080"
depends_on:
- configserver
- eureka
- service
environment:
- CONFIGSERVER_URL
- EUREKA_HOST
command: [--spring.profiles.active=cloud, --debug]