forked from p4yche/yulong-hids
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (61 loc) · 1.44 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
version: "2"
services:
ids_web:
container_name: ids_web
build:
context: .
dockerfile: Dockerfile-web
environment:
- IDS_ELASTICSEARCH_URL=http://ids_elasticsearch:9200
- IDS_MONGODB_URL=mongodb://ids_mongodb:27017/agent
network_mode: "bridge"
# volumes:
# - ./web/:/web/
depends_on:
- ids_mongodb
- ids_elasticsearch
links:
- ids_mongodb
- ids_elasticsearch
ports:
- 80:80
- 443:443
ids_server:
container_name: ids_server
build:
context: .
dockerfile: Dockerfile-server
environment:
- IDS_ELASTICSEARCH=ids_elasticsearch:9200
- IDS_MONGODB=ids_mongodb:27017
network_mode: "bridge"
depends_on:
- ids_mongodb
- ids_elasticsearch
links:
- ids_mongodb
- ids_elasticsearch
ports:
- 33433:33433
ids_elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.5.1
volumes:
- ./elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- 9200:9200
- 9300:9300
network_mode: "bridge"
hostname: "ids_elasticsearch"
environment:
ES_JAVA_OPTS: "-Xmx1024m -Xms1024m"
ids_mongodb:
image: mongo:latest
container_name: "ids_mongodb"
environment:
- MONGO_DATA_DIR=/data/db
volumes:
- ./mongodb_data:/data/db
ports:
- 27017:27017
network_mode: "bridge"
command: mongod