-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-redis-sidecar.yml
57 lines (50 loc) · 1.17 KB
/
docker-compose-redis-sidecar.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
version: '2.1'
services:
### INFRASTRUCTURE ###
# 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
# 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
# SideCar
eureka-sidecar-redis:
image: chan01.vse.cz/mi-eureka-sidecar-redis:1.0.0
container_name: eureka-sidecar-redis
depends_on:
eureka-zuul:
condition: service_healthy
restart: on-failure
ports:
- 16379:8080
# API
api-notification-8080:
image: chan01.vse.cz/mi-api-notification:1.0.0
container_name: api-notification-8080
depends_on:
eureka-sidecar-redis:
condition: service_healthy
restart: on-failure
ports:
- 8080:8080