Blame view

docker-compose.yml 3.65 KB
0d8c0f816   Thanasis Naskos   initial commit
1
2
3
4
5
6
7
8
  version: '3'
  
  services:
   
    #CEPTD     
    suricata:
      build: 
        context: ./CEPTD/docker/suricata
1af67b45b   Thanasis Naskos   Updating Suricata...
9
      image: datalabauth/kea-curex_suricata:v1.0.0
0d8c0f816   Thanasis Naskos   initial commit
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
      container_name: curex-suricata
      restart: always
      network_mode: "host"
      cap_add:
        - NET_ADMIN
        - SYS_NICE
        - NET_RAW
      command: ONLINE
      volumes:
        - ./data/suricata/log:/var/log/suricata
        - ./data/pcap:/var/pcap
        
    elasticsearch:
      image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
      container_name: curex-elasticsearch
      restart: always
      environment:
        - cluster.name=keacluster
        - node.name=keacluster-node-01
        - discovery.type=single-node
        - bootstrap.memory_lock=true
        - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
        - xpack.ml.enabled=false
        - xpack.security.enabled=false
        - xpack.ilm.enabled=false
        - path.logs=/data/elk/log
        - path.data=/data/elk/data
        - http.host=0.0.0.0
        - http.cors.enabled=true
        - http.cors.allow-origin="*"
        - indices.query.bool.max_clause_count=2000
      ulimits:
        memlock:
          soft: -1
          hard: -1
      ports:
        - "9200:9200"
      volumes:
        - ./data:/data #/usr/share/elasticsearch/data
    
    logstash:
      build: 
        context: ./CEPTD/docker/logstash
1af67b45b   Thanasis Naskos   Updating Suricata...
53
      image: datalabauth/kea-curex_logstash:v1.0.0
0d8c0f816   Thanasis Naskos   initial commit
54
55
56
57
58
59
60
61
62
63
      container_name: curex-logstash
      restart: always
      volumes:
        - ./data:/data
          
    kibana:
      image: "docker.elastic.co/kibana/kibana:7.6.2"
      container_name: curex-kibana
      restart: always
      ports:
d638fea7e   George Vlahavas   Change kibana por...
64
        - "5611:5601"
0d8c0f816   Thanasis Naskos   initial commit
65
66
67
        
    #Controller      
    webserver:
7ba34b2f7   George Vlahavas   Build our own web...
68
69
      build:
        context: ./webserver
0d8c0f816   Thanasis Naskos   initial commit
70
71
72
73
74
75
76
77
      container_name: curex-webserver
      restart: unless-stopped
      tty: true
      ports:
        - "88:80"
        - "443:443"
      volumes:
        - ./api:/var/www
0d8c0f816   Thanasis Naskos   initial commit
78
79
80
    
    composer:
      restart: 'no'
25df08e6c   Chris Bellas   Merged changes fr...
81
      image: composer:2.0.7
0d8c0f816   Thanasis Naskos   initial commit
82
83
84
85
86
87
88
89
90
91
92
93
94
95
      command: install
      volumes:
        - ./api:/app
             
    api:
      build:
        context: ./api
      image: curex-api
      container_name: curex-api
      restart: unless-stopped
      tty: true
      working_dir: /var/www
      volumes:
        - ./api:/var/www
0d8c0f816   Thanasis Naskos   initial commit
96
97
98
99
100
  
    #OD
    od:
      build: 
        context: ./OD
1af67b45b   Thanasis Naskos   Updating Suricata...
101
      image: datalabauth/kea-curex_od:v1.0.0
0d8c0f816   Thanasis Naskos   initial commit
102
      container_name: curex-od
16f21ad3e   Thanasis Naskos   Fixing sonarqube ...
103
      environment:
850b58c41   Thanasis Naskos   Update OD to dete...
104
105
        - "RSYSLOG_SERVER=${RSYSLOG_SERVER}"
        - "RSYSLOG_PORT=${RSYSLOG_PORT}"
0d8c0f816   Thanasis Naskos   initial commit
106
107
108
109
110
111
112
113
114
115
      depends_on:
        - timescaledb
      restart: always
      ports:
        - "9091:9091"
    
    #MLTD
    mltd:
      build:
        context: ./MLTD
1af67b45b   Thanasis Naskos   Updating Suricata...
116
      image: datalabauth/kea-curex_mltd:v1.0.0
0d8c0f816   Thanasis Naskos   initial commit
117
      container_name: curex-mltd
2e20dacc7   Thanasis Naskos   MLTD implementati...
118
      environment:
850b58c41   Thanasis Naskos   Update OD to dete...
119
120
        - "RSYSLOG_SERVER=${RSYSLOG_SERVER}"
        - "RSYSLOG_PORT=${RSYSLOG_PORT}"
0d8c0f816   Thanasis Naskos   initial commit
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
      depends_on:
        - timescaledb
        - mosquitto
      restart: always
      ports:
        - "5000:5000"
    
    #MQTT   
    mosquitto:
      image: eclipse-mosquitto:1.6.9
      container_name: curex-mqtt
      ports:
        - "1883:1883"
        - "9001:9001"
      volumes:
        - ./data/mosquitto/data:/mosquitto/data
        - ./data/mosquitto/log:/mosquitto/log
    
    #Persistence
    timescaledb:
dbf4e1472   George Vlahavas   Freeze timescaled...
141
      image: timescale/timescaledb:2.1.0-pg11-oss
0d8c0f816   Thanasis Naskos   initial commit
142
143
144
145
146
147
148
149
150
151
152
153
      container_name: curex-timescaledb
      volumes:
        - ./data/timescaledb:/var/lib/postgresql/data
      environment:
        - POSTGRES_USER=postgres
        - POSTGRES_PASSWORD=postgres
        - POSTGRES_DB=kea
      ports:
        - "5432:5432"
    
    #Visualization
    grafana:
b849ecaad   George Vlahavas   Build our own gra...
154
      build:
2e20dacc7   Thanasis Naskos   MLTD implementati...
155
        context: ./grafana
b849ecaad   George Vlahavas   Build our own gra...
156
      image: kea_grafana:1.0.0
0d8c0f816   Thanasis Naskos   initial commit
157
158
159
160
161
162
163
164
165
166
      container_name: curex-grafana
      ports:
        - "3001:3000"
      environment:
        - GF_SECURITY_ALLOW_EMBEDDING=true
        - GF_SECURITY_COOKIE_SAMESITE=none
        - GF_AUTH_ANONYMOUS_ENABLED=true
        - GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
      volumes:
        - ./data/grafana-storage:/var/lib/grafana