-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
106 lines (99 loc) · 2.2 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: '2.1'
services:
### INFRASTRUCTURE ###
# RabbitMQ
mi-rabbitmq:
image: rabbitmq:management
container_name: mi-rabbitmq
ports:
- '5672:5672'
- '15672:15672'
volumes:
- mi-rabbitmq-data
# Redis
mi-redis:
image: redis
container_name: mi-redis
command: ["redis-server", "--appendonly", "yes"]
ports:
- 6379:6379
volumes:
- mi-redis-data
### MICROSERVICES ###
# Eureka Server
eureka-server:
image: chan01.vse.cz/mi-eureka-server:1.0.0
container_name: eureka-server
ports:
- 8761:8080
- 3000:3000
environment:
- PORT=8761
# Eureka Zuul
eureka-zuul:
image: chan01.vse.cz/mi-eureka-zuul:1.0.0
container_name: eureka-zuul
depends_on:
eureka-server:
condition: service_healthy
restart: on-failure
ports:
- 8762:8080
environment:
- PORT=8762
# API
api-customer-8070:
image: chan01.vse.cz/mi-api-customer:1.0.0
container_name: api-customer-8070
restart: on-failure
depends_on:
eureka-zuul:
condition: service_healthy
ports:
- 8070:8080
environment:
- PORT=8070
#api-customer-8071:
# image: chan01.vse.cz/mi-api-customer:1.0.0
# container_name: api-customer-8071
# restart: on-failure
# depends_on:
# eureka-zuul:
# condition: service_healthy
# ports:
# - 8071:8080
# environment:
# - PORT=8071
api-contract-8080:
image: chan01.vse.cz/mi-api-contract:1.0.0
container_name: api-contract-8080
restart: on-failure
depends_on:
eureka-zuul:
condition: service_healthy
ports:
- 8080:8080
environment:
- PORT=8080
api-contract-8081:
image: chan01.vse.cz/mi-api-contract:1.0.0
container_name: api-contract-8081
restart: on-failure
depends_on:
eureka-zuul:
condition: service_healthy
ports:
- 8081:8080
environment:
- PORT=8081
api-document-8090:
image: chan01.vse.cz/mi-api-document:1.0.0
container_name: api-document-8090
restart: on-failure
depends_on:
eureka-zuul:
condition: service_healthy
ports:
- 8090:8080
environment:
- PORT=8090