-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
129 lines (117 loc) · 3.35 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
# WARNING!
# This is a development version of the docker-compose.yml file.
# Avoid using this file in your production environment.
# We're exposing here sensitive ports and mounting code volumes for rapid development and debugging of the server stack.
x-logging: &x-logging
logging:
driver: 'json-file'
options:
max-file: '5'
max-size: '10m'
version: '3'
services:
openruntimes-proxy:
container_name: openruntimes-proxy
<<: *x-logging
build:
context: .
networks:
servers:
ports:
- 9800:80
volumes:
- ./app:/usr/local/app:rw
- ./src:/usr/local/src:rw
- ./tests:/usr/local/tests:rw
environment:
- OPR_PROXY_ALGORITHM
- OPR_PROXY_WORKER_PER_CORE
- OPR_PROXY_EXECUTORS
- OPR_PROXY_HEALTHCHECK_INTERVAL
- OPR_PROXY_MAX_TIMEOUT
- OPR_PROXY_ENV
- OPR_PROXY_EXECUTOR_SECRET
- OPR_PROXY_SECRET
- OPR_PROXY_LOGGING_PROVIDER
- OPR_PROXY_LOGGING_CONFIG
- OPR_PROXY_HEALTHCHECK
- OPR_PROXY_HEALTHCHECK_URL
- OPR_PROXY_CONNECTIONS_STATE
depends_on:
redis-cluster-0:
condition: service_healthy
redis:
image: redis:6.0-alpine
container_name: redis
networks:
servers:
healthcheck:
test: [ "CMD", "redis-cli", "-h", "localhost", "-p", "6379", "ping" ]
start_interval: 1s
redis-cluster-0:
image: docker.io/bitnami/redis-cluster:7.4
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_NODES=redis-cluster-0 redis-cluster-1 redis-cluster-2 redis-cluster-3
- REDIS_CLUSTER_CREATOR=yes
- REDIS_CLUSTER_REPLICAS=0
networks:
servers:
depends_on:
redis-cluster-1:
condition: service_started
redis-cluster-2:
condition: service_started
redis-cluster-3:
condition: service_started
healthcheck:
test: [ "CMD", "redis-cli", "-h", "localhost", "-p", "6379", "ping" ]
start_interval: 1s
redis-cluster-1:
image: docker.io/bitnami/redis-cluster:7.4
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_NODES=redis-cluster-0 redis-cluster-1 redis-cluster-2 redis-cluster-3
networks:
servers:
healthcheck:
test: [ "CMD", "redis-cli", "-h", "localhost", "-p", "6379", "ping" ]
start_interval: 1s
redis-cluster-2:
image: docker.io/bitnami/redis-cluster:7.4
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_NODES=redis-cluster-0 redis-cluster-1 redis-cluster-2 redis-cluster-3
networks:
servers:
healthcheck:
test: [ "CMD", "redis-cli", "-h", "localhost", "-p", "6379", "ping" ]
start_interval: 1s
redis-cluster-3:
image: docker.io/bitnami/redis-cluster:7.4
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_NODES=redis-cluster-0 redis-cluster-1 redis-cluster-2 redis-cluster-3
networks:
servers:
healthcheck:
test: [ "CMD", "redis-cli", "-h", "localhost", "-p", "6379", "ping" ]
start_interval: 1s
mockoon1:
container_name: mockoon1
image: mockoon/cli:2.2.1
command: mockoon-cli start --data /data
networks:
servers:
volumes:
- ./mockoon.json:/data:ro
mockoon2:
container_name: mockoon2
image: mockoon/cli:2.2.1
command: mockoon-cli start --data /data
networks:
servers:
volumes:
- ./mockoon.json:/data:ro
networks:
servers: