forked from DecisionsDev/odm-ondocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-cluster.yml
executable file
·84 lines (78 loc) · 1.88 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
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
version: '2'
services:
dbserver:
image: $PREFIXIMAGE/dbserver:$ODMVERSION
build:
context: ./
dockerfile: ./derby-server-db/Dockerfile
ports:
- 1527:1527
environment:
- SAMPLE=true
# Uncomment this line to persist your data. Note that on OSX you need to share this
# current directory in the Perference menu -> File Sharing menu.
# volumes:
# - ./:/opt/db-derby-10.12.1.1-bin
decisionserverconsole:
image: $PREFIXIMAGE/decisionserverconsole:$ODMVERSION
build:
context: ../
dockerfile: ./$ODMDOCKERDIR/decisionserverconsole/Dockerfile
args:
- ODMDOCKERDIR=$ODMDOCKERDIR
links:
- dbserver
ports:
- 9080:9080
- 1883:1883
decisionserverruntime:
image: $PREFIXIMAGE/decisionserverruntime:$ODMVERSION
build:
context: ../
dockerfile: ./$ODMDOCKERDIR/decisionserverruntime/Dockerfile
args:
- ODMDOCKERDIR=$ODMDOCKERDIR
links:
- dbserver
- decisionserverconsole
environment:
- EXCLUDE_PORTS=9443
ports:
- 9080
decisionrunner:
image: $PREFIXIMAGE/decisionrunner:$ODMVERSION
build:
context: ../
dockerfile: ./$ODMDOCKERDIR/decisionrunner/Dockerfile
args:
- ODMDOCKERDIR=$ODMDOCKERDIR
links:
- dbserver
depends_on:
- dbserver
- decisionserverconsole
ports:
- 9070:9080
decisioncenter:
image: $PREFIXIMAGE/decisionrunner:$ODMVERSION
build:
context: ../
dockerfile: ./$ODMDOCKERDIR/decisioncenter/Dockerfile
args:
- ODMDOCKERDIR=$ODMDOCKERDIR
links:
- dbserver
depends_on:
- dbserver
ports:
- 9060:9060
# The load balancer for the Runtime.
lb:
image: dockercloud/haproxy
links:
- decisionserverruntime
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:80
- 1936:1936