-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
136 lines (131 loc) · 3.01 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
services:
redis:
image: redis:latest
restart: always
volumes:
- ./redis/data:/data
command: ["redis-server", "--save 60 1", "--loglevel warning"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
networks:
- div_counter_network
tcs_api_accessor:
env_file:
- TCSApiAccessor/.env.example
build:
context: TCSApiAccessor
# uncomment the next line to run on a Raspberry Pi
# dockerfile: Dockerfile_raspberry_pi
networks:
- div_counter_network
tcs_api_accessor-dapr:
image: "daprio/daprd:edge"
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 10
window: 120s
command: [
"./daprd",
"--app-id", "tcs_api_accessor",
"--app-port", "8000",
"--resources-path", "./components"
]
volumes:
- "./components/:/components"
depends_on:
- tcs_api_accessor
network_mode: "service:tcs_api_accessor"
redis_accessor:
build:
context: RedisAccessor
networks:
- div_counter_network
depends_on:
redis:
condition: service_healthy
redis_accessor-dapr:
image: "daprio/daprd:edge"
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 10
window: 120s
command: [
"./daprd",
"--app-id", "redis_accessor",
"--app-port", "50051",
"--app-protocol", "grpc",
"--resources-path", "./components"
]
volumes:
- "./components/:/components"
depends_on:
- redis_accessor
network_mode: "service:redis_accessor"
log_accessor:
build:
context: LogAccessor
volumes:
- ./log.txt:/app/log.txt
networks:
- div_counter_network
depends_on:
- redis_accessor
log_accessor-dapr:
image: "daprio/daprd:edge"
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 10
window: 120s
command: [
"./daprd",
"--app-id", "log_accessor",
"--app-port", "8001",
"--resources-path", "./components"
]
volumes:
- "./components/:/components"
depends_on:
- log_accessor
network_mode: "service:log_accessor"
div_counter_manager:
build:
context: DivCounterManager
ports:
- 8005:8005
networks:
- div_counter_network
depends_on:
- redis_accessor
- tcs_api_accessor
restart: always
div_counter_manager-dapr:
image: "daprio/daprd:edge"
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 10
window: 120s
command: [
"./daprd",
"--app-id", "div_counter_manager",
"--app-port", "8005",
"--resources-path", "./components"
]
volumes:
- "./components/:/components"
depends_on:
- div_counter_manager
network_mode: "service:div_counter_manager"
networks:
div_counter_network:
driver: bridge