-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-conductor.yml
149 lines (138 loc) · 3.69 KB
/
docker-compose-conductor.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
137
138
139
140
141
142
143
144
145
146
147
148
149
# Copyright 2023 Mantel Group Pty Ltd
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: '3.7'
volumes:
opensearch-data-node1:
driver: local
pgdata-conductor:
driver: local
networks:
conductor-poc-network:
name: conductor-poc-network
services:
postgres:
image: postgres
environment:
- POSTGRES_USER=conductor
- POSTGRES_PASSWORD=conductor
volumes:
- pgdata-conductor:/var/lib/postgresql/data
networks:
- conductor-poc-network
ports:
- 5432:5432
healthcheck:
test: timeout 5 bash -c 'cat < /dev/null > /dev/tcp/localhost/5432'
interval: 5s
timeout: 5s
retries: 12
logging:
driver: "json-file"
options:
max-size: "1k"
max-file: "3"
conductor-server:
environment:
- CONFIG_PROP=/config-local.properties
image: conductor:server
build:
context: .
dockerfile: docker/Dockerfile-conductor
args:
- CONDUCTOR_RELEASE=3.13.3
networks:
- conductor-poc-network
volumes:
- ./conductor/config-local.properties:/app/config/config-local.properties
ports:
- 8080:8080
healthcheck:
test: ["CMD", "curl","-I" ,"-XGET", "http://localhost:8080/health"]
interval: 60s
timeout: 30s
retries: 12
links:
- opensearch:es
- postgres:postgresdb
depends_on:
opensearch:
condition: service_healthy
logging:
driver: "json-file"
options:
max-size: "1k"
max-file: "3"
conductor-ui:
environment:
- WF_SERVER=http://conductor-server:8080
image: conductor:ui
build:
context: .
dockerfile: docker/Dockerfile-conductor-ui
args:
- CONDUCTOR_RELEASE=3.13.3
networks:
- conductor-poc-network
ports:
- 5000:5000
links:
- conductor-server
# stdin_open: true
opensearch:
image: opensearchproject/opensearch:1
container_name: opensearch-node1
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-node1
- discovery.type=single-node
- bootstrap.memory_lock=true
- DISABLE_SECURITY_PLUGIN=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- opensearch-data-node1:/usr/share/opensearch/data # Creates volume called opensearch-data1 and mounts it to the container
ports:
- 9200:9200 # REST API
- 9300:9300
- 9600:9600 # Performance Analyzer
networks:
- conductor-poc-network
healthcheck:
test: timeout 5 bash -c 'cat < /dev/null > /dev/tcp/localhost/9300'
interval: 5s
timeout: 5s
retries: 24
express-app:
container_name: express-app
hostname: express-app-host
environment:
- NODE_ENV=development
- POC_EMAIL_USER=${POC_EMAIL_USER}
- POC_EMAIL_PASS=${POC_EMAIL_PASS}
- CONDUCTOR_HOST=conductor-server
- ORCHESTRATION_TOOL=conductor
networks:
- conductor-poc-network
build:
context: .
dockerfile: docker/Dockerfile-demo-app
expose:
- "4000"
ports:
- "4000:4000"
command:
npm run serve