-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
161 lines (148 loc) · 4.28 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
version: "3.1"
services:
# For Local Dev
# Requires a ` docker build . -t execution_engine2:test `
# Requires a ` make database `
# ee2:
# image: execution_engine2:test
# command:
# - "-poll"
# - "-template"
# - "/kb/module/build/templates/condor_config.templ:/etc/condor/condor_config"
# - "-template"
# - "/kb/module/test/deploy.cfg:/kb/module/deploy.cfg"
# - "-timeout"
# - "120s"
# - "-wait"
# - "tcp://mongodb:27017"
# - "-stdout"
# - "/kb/deployment/jettybase/logs/request.log"
# - "./scripts/entrypoint.sh"
# entrypoint: [ "dockerize" ]
# depends_on: ["mongodb","condor"]
# environment:
# - POOL_PASSWORD=weakpassword
# env_file: test/deploy.cfg
# volumes:
# - ./:/ee2
#
# ee2_with_ssh:
# image: execution_engine2:test
# command:
# - "-poll"
# - "-template"
# - "/kb/module/build/templates/condor_config.templ:/etc/condor/condor_config"
# - "-template"
# - "/kb/module/build/templates/deploy.docker.cfg.templ:/kb/module/deploy.cfg"
# - "-timeout"
# - "120s"
# - "-wait"
# - "tcp://mongodb:27017"
# - "-stdout"
# - "/kb/deployment/jettybase/logs/request.log"
# - "./scripts/entrypoint.sh"
# entrypoint: [ "dockerize" ]
# depends_on: ["mongodb","condor"]
# environment:
# - POOL_PASSWORD=weakpassword
# - LOCAL_DEV=1
# - KB_DEPLOYMENT_CONFIG=/kb/module/deploy.cfg
# env_file: test/deploy.cfg
# ports: ["23:22","5678:5678"]
# volumes:
# - ./:/ee2
# - /Users:/Users
condor_worker_mini:
privileged: true
image: kbase/condor-worker:develop
hostname: condor_worker_mini
command:
- "-poll"
- "-template"
- "/kb/deployment/conf/.templates/condor_config_worker.templ:/etc/condor/condor_config.local"
- "-template"
- "/kb/deployment/conf/.templates/shared_port_config.templ:/etc/condor/config.d/shared_port_config"
- "-timeout"
- "120s"
- "-stdout"
- "/var/log/condor/ProcLog"
- "-stdout"
- "/var/log/condor/StartLog"
- "/kb/deployment/bin/start-condor.sh"
depends_on: ["condor"]
environment:
- POOL_PASSWORD=weakpassword
- COLLECTOR_HOST=condor:9618?sock=collector
- USE_TCP=True
- EXECUTE_SUFFIX=mini_kb
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /sys/fs/cgroup:/sys/fs/cgroup
condor:
image: kbase/condor:develop
hostname: condor
environment:
- POOL_PASSWORD=weakpassword
- USE_TCP=True
ports:
- "9618:9618"
entrypoint:
- "/usr/bin/dockerize"
command:
- "-poll"
- "-template"
- "/etc/condor/.templates/condor_config.local.templ:/etc/condor/condor_config.local"
- "-stdout"
- "/var/log/condor/MasterLog"
- "-stdout"
- "/var/log/condor/SchedLog"
- "/usr/sbin/start-condor.sh"
volumes:
- ./condor_shared/:/condor_shared/
- ./condor_shared/cdr/:/cdr/
manager:
image: kafkamanager/kafka-manager
hostname: manager
ports:
- "0.0.0.0:9000:9000"
depends_on:
- zookeeper
environment:
ZK_HOSTS: zookeeper
kafka:
image: confluentinc/cp-kafka:5.0.0
hostname: kafka
ports:
- "0.0.0.0:9092:9092"
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_HEAP_OPTS: -Xmx512m -Xms512m
# Required for kafka
zookeeper:
image: confluentinc/cp-zookeeper:latest
hostname: zookeeper
ports:
- "0.0.0.0:2181:2181"
environment:
ZOOKEEPER_SERVER_ID: 1
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ZOOKEEPER_INIT_LIMIT: 5
ZOOKEEPER_SYNC_LIMIT: 2docker-compose rm
ZOOKEEPER_SERVERS: zookeeper:12888:13888
mongodb:
image: mongo:${MONGO_VERSION:-7.0} # Use 7.0 as the default if MONGO_VERSION is not set
environment:
- MONGO_INITDB_ROOT_USERNAME=travis
- MONGO_INITDB_ROOT_PASSWORD=travis
- MONGO_INITDB_DATABASE=ee2
ports:
- "27018:27017"
- "27017:27017"
volumes:
- ${INIT_PATH:-./test/dockerfiles/mongo/docker-entrypoint-initdb.d-7.0/}:/docker-entrypoint-initdb.d/