forked from Netflix/mantis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
115 lines (106 loc) · 3.54 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
# Compose file that brings up ZK, Mesos, Mantis Agent, and Mantis Master in their own containers.
# Each container is using "host" networking to ensure they can communicate.
# The ZK and Mesos images are currently pulled from Docker Hub.
# The Mantis Master and Mantis Agent images are expected to exist
# locally, built from the Dockerfile in their Stash repos so that
# the local developer's control which version is being built.
version: '3'
services:
zookeeper:
image: jplock/zookeeper:3.4.6
ports:
- "2181:2181"
networks:
mantis_net:
ipv4_address: 172.16.186.3
# Start mesos-master
mesos-master:
image: mesosphere/mesos-master:1.3.2
ports:
- "5050:5050"
command: mesos-master --zk=zk://zookeeper:2181/mantis/mesos/nmahilani --work_dir=/tmp/master --log_dir=/var/log/mesos --logging_level=INFO --quorum=1
depends_on:
- zookeeper
networks:
mantis_net:
ipv4_address: 172.16.186.4
# MantisMaster local build
mantismaster:
image: netflixoss/mantiscontrolplaneserver
ports:
- "8100:8100"
- "5005:5005"
depends_on:
- mesos-master
environment:
JAVA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -Dmantis.zookeeper.connectString=zookeeper:2181 -Dmesos.master.location=mesos-master:5050 -Dmantis.master.exit.on.losing.leader=false"
volumes:
- ./localdev/conf/:/apps/mantis/mantis-control-plane-server/localconf/
networks:
mantis_net:
ipv4_address: 172.16.186.5
# Start Mantis executor
mantisagent:
image: netflixoss/mantisagent
ports:
- "5051:5051"
privileged: true
command:
mesos-slave \
--master=zk://zookeeper:2181/mantis/mesos/nmahilani \
--log_dir=/var/log/mesos/ \
--work_dir=/tmp/mesos_workdir \
--logging_level=INFO \
--hostname=mantisagent \
--resources="ports:[7150-7400];ephemeral_ports:[32768-57344];network:1000" \
--attributes="region:laptop;asg:mantisagent-laptop-v001;stack:laptop;zone:laptopd;itype:macbook.pro;cluster:mantisagent-laptop;id:l-deadbeef;res:ResourceSet-ENIs-7-29"
depends_on:
- zookeeper
volumes:
- ./localdev/conf/:/mnt/local/mantisWorkerInstall/jobs/
# - ./mantis-server/mantis-server-worker/src/main/resources/startup_docker.sh:/mnt/local/mantisWorkerInstall/bin/startup_docker.sh
networks:
mantis_net:
ipv4_address: 172.16.186.6
#
mantisapi:
image: netflixoss/mantisapi
ports:
- "7101:7101"
- "5006:5006"
environment:
JAVA_OPTS: "-Dmantis.zookeeper.connectString=zookeeper:2181 -Dmantissapi.master.host=mantismaster -Dmantisapi.master.ip=172.16.186.5 -Dmantisapi.master.port=8100"
NETFLIX_ENVIRONMENT: test
NETFLIX_ACCOUNT: test
NETFLIX_STACK: desktop
depends_on:
- mantismaster
networks:
mantis_net:
ipv4_address: 172.16.186.7
mantispublishweb:
image: netflixoss/mantispublishweb
ports:
- "80:8080"
depends_on:
- mantisapi
networks:
mantis_net:
ipv4_address: 172.16.186.8
mantispublish:
image: netflixoss/mantispublish
ports:
- "81:8180"
depends_on:
- mantisapi
networks:
mantis_net:
ipv4_address: 172.16.186.9
networks:
mantis_net:
driver: bridge
ipam:
driver: default
config:
-
subnet: 172.16.186.0/24