File size: 6,390 Bytes
7c89ed7 | 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 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 | ---
version: '2.3'
services:
nginx:
image: mozdef/mozdef_cognito_proxy:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
restart: always
depends_on:
- meteor
links:
- "meteor"
ports:
- 80:8000
- 9090:8090
networks:
- default
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 1m30s
timeout: 10s
retries: 10
mongodb:
image: mozdef/mozdef_mongodb:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
restart: always
command: /usr/bin/mongod --smallfiles --config /etc/mongod.conf
volumes:
- /var/lib/mongodb:/var/lib/mongo
networks:
- default
bootstrap:
image: mozdef/mozdef_bootstrap:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
command: bash -c 'python initial_setup.py http://elasticsearch:9200 http://kibana:5601'
depends_on:
- base
networks:
- default
# MozDef Specific Containers
base:
image: mozdef/mozdef_base:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
alertactions:
image: mozdef/mozdef_alertactions:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
restart: always
command: bash -c 'python alert_actions_worker.py -c alert_actions_worker.conf'
depends_on:
- base
- alerts
- bootstrap
networks:
- default
alerts:
image: mozdef/mozdef_alerts:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
- rabbitmq.env
volumes:
- /opt/mozdef/docker/compose/mozdef_alerts/files/config.py:/opt/mozdef/envs/mozdef/alerts/lib/config.py
restart: always
command: bash -c 'celery -A lib.tasks worker --loglevel=info --beat'
depends_on:
- base
- bootstrap
networks:
- default
cron:
image: mozdef/mozdef_cron:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
restart: always
command: bash -c 'cd / && bash launch_cron'
volumes:
- cron:/opt/mozdef/envs/mozdef/cron
- geolite_db:/opt/mozdef/envs/mozdef/data/
depends_on:
- base
- mongodb
networks:
- default
loginput:
image: mozdef/mozdef_loginput:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
restart: always
command: bash -c 'python index.py -c index.conf'
depends_on:
- base
- bootstrap
ports:
- 8080:8080
networks:
- default
meteor:
image: mozdef/mozdef_meteor:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
restart: always
command: bash -c 'node bundle/main.js'
depends_on:
- mongodb
- rest
- bootstrap
ports:
- 3000:3000
networks:
- default
rest:
image: mozdef/mozdef_rest:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
restart: always
command: bash -c 'python index.py -c index.conf'
depends_on:
- base
- mongodb
- bootstrap
networks:
- default
syslog:
image: mozdef/mozdef_syslog:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
restart: always
command: bash -c '/usr/sbin/syslog-ng --no-caps -F'
depends_on:
- loginput
ports:
- 514:514/udp
- 514:514
networks:
- default
rabbitmq:
image: mozdef/mozdef_rabbitmq:latest
init: true
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- rabbitmq.env
restart: always
command: rabbitmq-server
ports:
- 5672:5672
- 15672:15672 # Admin interface
volumes:
- rabbitmq:/var/lib/rabbitmq
networks:
- default
mq_eventtask:
image: mozdef/mozdef_mq_worker:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
restart: always
command: bash -c 'test -e /opt/mozdef/envs/mozdef/data/GeoLite2-City.mmdb && python esworker_eventtask.py -c esworker_eventtask.conf'
scale: 1
depends_on:
- base
- rabbitmq
- loginput
- bootstrap
networks:
- default
volumes:
- geolite_db:/opt/mozdef/envs/mozdef/data/
mq_cloudtrail:
image: mozdef/mozdef_mq_worker:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
- cloudy_mozdef_mq_cloudtrail.env
restart: always
command: bash -c 'test -e /opt/mozdef/envs/mozdef/data/GeoLite2-City.mmdb && python esworker_cloudtrail.py -c esworker_cloudtrail.conf'
scale: 1
depends_on:
- base
- rabbitmq
- loginput
- bootstrap
networks:
- default
volumes:
- geolite_db:/opt/mozdef/envs/mozdef/data/
mq_sqs:
image: mozdef/mozdef_mq_worker:latest
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
env_file:
- cloudy_mozdef.env
- cloudy_mozdef_mq_sqs.env
restart: always
command: bash -c 'test -e /opt/mozdef/envs/mozdef/data/GeoLite2-City.mmdb && python esworker_sqs.py -c esworker_sqs.conf'
scale: 1
depends_on:
- base
- rabbitmq
- loginput
- bootstrap
networks:
- default
volumes:
- geolite_db:/opt/mozdef/envs/mozdef/data/
volumes:
cron:
geolite_db:
rabbitmq:
networks:
default:
|