docker_compose_netalertx.yaml
· 863 B · YAML
原始檔案
services:
netalertx:
container_name: netalertx
image: "ghcr.io/jokob-sk/netalertx" # ✔️ NOUVEAU
#image: ghcr.io/jokob-sk/netalertx:v25.5.24
network_mode: "host"
restart: unless-stopped
read_only: true
cap_drop:
- ALL
cap_add:
- NET_ADMIN
- NET_RAW
- NET_BIND_SERVICE
volumes:
- ./data:/data:rw
- /etc/localtime:/etc/localtime:ro
tmpfs:
- "/tmp:uid=20211,gid=20211,mode=1700,rw,noexec,nosuid,nodev,async,noatime,nodiratime"
environment:
LISTEN_ADDR: 0.0.0.0
PORT: 20211
GRAPHQL_PORT: 20212
mem_limit: 2048m
mem_reservation: 1024m
cpu_shares: 512
pids_limit: 512
logging:
driver: "json-file" # Use JSON file logging driver
options:
max-size: "10m" # Rotate log files after they reach 10MB
| 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 |
| 41 |