forked from defrankline/MicroservicesSpringBoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (55 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
60 lines (55 loc) · 1.44 KB
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:
serviceregistry:
image: "etiennebel/microspring_serviceregistry"
container_name: serviceregistry
ports:
- "8761:8761"
configserver:
image: "etiennebel/microspring_configserver"
container_name: configserver
ports:
- "9296:9296"
environment:
- EUREKA_SERVER_ADDRESS=http://serviceregistry:8761/eureka
healthcheck:
test: ["CMD", "curl", "-f", "http://configserver:9296/actuator/health"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
- serviceregistry
apigateway:
image: "etiennebel/microspring_apigateway"
container_name: cloudgateway
ports:
- "9090:9090"
environment:
- EUREKA_SERVER_ADDRESS=http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
depends_on:
configserver:
condition: service_healthy
movieservice:
image: "etiennebel/microspring_movieservice"
container_name: movieservice
ports:
- "8088:8088"
environment:
- EUREKA_SERVER_ADDRESS=http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
depends_on:
configserver:
condition: service_healthy
# productDb:
# container_name: productDb
# image: mysql:latest
# volumes:
# - mysql_data:/var/lib/mysql
# environment:
# MYSQL_USER: root
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: productDb
# ports:
# - "3306:3306"
#volumes:
# mysql_data: