-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-build-amd64.yaml
More file actions
63 lines (58 loc) · 1.51 KB
/
docker-compose-build-amd64.yaml
File metadata and controls
63 lines (58 loc) · 1.51 KB
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
version: '3'
services:
suricata:
# image: suricata_suricata:v1
# image: self-security_suricata:latest
build:
context: ./k8s-infra/Docker_image_files/suricata
dockerfile: Dockerfile
container_name: suricata
network_mode: host
cap_add:
- NET_ADMIN
- NET_RAW
- SYS_NICE
volumes:
- ./k8s-infra/suricata.yaml:/etc/suricata/suricata.yaml
- ./k8s-infra/suricata.rules:/var/lib/suricata/rules/suricata.rules
- default-log-dir:/var/log/suricata
command: -i eth0
restart: always
python-etl:
build:
context: ./k8s-infra/Docker_image_files/etl
dockerfile: Dockerfile
container_name: python-etl
environment:
- ENDPOINT_URL=http://ENDPOINT_URL
- MY_NODE_NAME=docker_node
- Password_Admin=Admin Password
- Userpassword=User PassWord@
volumes:
- default-log-dir:/var/log/suricata
depends_on:
- suricata
suricata-api:
build:
context: ./k8s-infra/Docker_image_files/api
dockerfile: Dockerfile
target: builder
container_name: suricata-api
enviroment:
- MY_NODE_NAME=docker_node
# flask requires SIGINT to stop gracefully
# (default stop signal from Compose is SIGTERM)
stop_signal: SIGINT
ports:
- '8000:8000'
volumes:
- default-log-dir:/var/log/suricata
depends_on:
- suricata
volumes:
default-log-dir:
configs:
suricata-config:
file: ./k8s-infra/suricata.yaml
suricata-rules:
file: ./k8s-infra/suricata.rules