-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-cluster.yml
48 lines (45 loc) · 1.23 KB
/
docker-compose-cluster.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
version: "3.8"
services:
mule-ee-0:
networks:
- cluster-mule
command: >
bash -c "${MULE_HOME}/bin/amc_setup -H ${MULE_SERVER_TOKEN} ${MULE_SERVER_ID}-0
&& ${MULE_HOME}/bin/mule"
container_name: mule-ee-${MULE_VERSION}-0
image: mule-ee-${MULE_VERSION}-cluster:1.0.1
restart: always
build:
context: ./containers/mule-ee/
dockerfile: Cluster.Dockerfile
args:
MULE_HOME: "${MULE_HOME}"
MULE_VERSION: "${MULE_VERSION}"
environment:
MULE_HOME: "${MULE_HOME}"
MULE_VERSION: "${MULE_VERSION}"
ports:
- "5050-5059:5050-5059"
mule-ee-1:
networks:
- cluster-mule
command: >
bash -c "${MULE_HOME}/bin/amc_setup -H ${MULE_SERVER_TOKEN} ${MULE_SERVER_ID}-1
&& ${MULE_HOME}/bin/mule"
container_name: mule-ee-${MULE_VERSION}-1
image: mule-ee-${MULE_VERSION}-cluster:1.0.1
restart: always
build:
context: ./containers/mule-ee/
dockerfile: Cluster.Dockerfile
args:
MULE_HOME: "${MULE_HOME}"
MULE_VERSION: "${MULE_VERSION}"
environment:
MULE_HOME: "${MULE_HOME}"
MULE_VERSION: "${MULE_VERSION}"
ports:
- "4050-4059:5050-5059"
networks:
cluster-mule:
driver: bridge