Última actividad 1 month ago

docker compose for Netalertx

Erreur32's Avatar Erreur32 revisó este gist 6 months ago. Ir a la revisión

1 file changed, 40 insertions

docker_compose_netalertx.yaml(archivo creado)

@@ -0,0 +1,40 @@
1 + services:
2 + netalertx:
3 + container_name: netalertx
4 +
5 + image: "ghcr.io/jokob-sk/netalertx" # ✔️ NOUVEAU
6 + #image: ghcr.io/jokob-sk/netalertx:v25.5.24
7 +
8 + network_mode: "host"
9 +
10 + restart: unless-stopped
11 + read_only: true
12 +
13 + cap_drop:
14 + - ALL
15 + cap_add:
16 + - NET_ADMIN
17 + - NET_RAW
18 + - NET_BIND_SERVICE
19 +
20 + volumes:
21 + - ./data:/data:rw
22 + - /etc/localtime:/etc/localtime:ro
23 +
24 + tmpfs:
25 + - "/tmp:uid=20211,gid=20211,mode=1700,rw,noexec,nosuid,nodev,async,noatime,nodiratime"
26 +
27 + environment:
28 + LISTEN_ADDR: 0.0.0.0
29 + PORT: 20211
30 + GRAPHQL_PORT: 20212
31 +
32 + mem_limit: 2048m
33 + mem_reservation: 1024m
34 + cpu_shares: 512
35 + pids_limit: 512
36 +
37 + logging:
38 + driver: "json-file" # Use JSON file logging driver
39 + options:
40 + max-size: "10m" # Rotate log files after they reach 10MB
Siguiente Anterior