Skip to content

Commit

Permalink
idaholab#301, allow configuration of docker's logging driver to preve…
Browse files Browse the repository at this point in the history
…nt disk-exhaustion
  • Loading branch information
mmguero committed Nov 28, 2023
1 parent 9059cf2 commit 2331293
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docker-compose-standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

version: '3.7'

x-logging:
&default-logging
driver: local
options:
max-size: 200m
max-file: 2
compress: "false"

services:
opensearch:
image: ghcr.io/idaholab/malcolm/opensearch:23.11.0
Expand All @@ -10,6 +18,7 @@ services:
# start but not actually run OpenSearch. It's included in both profiles to
# satisfy some other containers' depends_on.
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -44,6 +53,7 @@ services:
dashboards-helper:
image: ghcr.io/idaholab/malcolm/dashboards-helper:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -73,6 +83,7 @@ services:
dashboards:
image: ghcr.io/idaholab/malcolm/dashboards:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -100,6 +111,7 @@ services:
logstash:
image: ghcr.io/idaholab/malcolm/logstash-oss:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -143,6 +155,7 @@ services:
filebeat:
image: ghcr.io/idaholab/malcolm/filebeat-oss:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -178,6 +191,7 @@ services:
image: ghcr.io/idaholab/malcolm/arkime:23.11.0
# todo: viewer/wise in hedgehog profile (and what about nginx reaching back?)
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -217,6 +231,7 @@ services:
zeek:
image: ghcr.io/idaholab/malcolm/zeek:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -256,6 +271,7 @@ services:
zeek-live:
image: ghcr.io/idaholab/malcolm/zeek:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -285,6 +301,7 @@ services:
suricata:
image: ghcr.io/idaholab/malcolm/suricata:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -320,6 +337,7 @@ services:
suricata-live:
image: ghcr.io/idaholab/malcolm/suricata:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -347,6 +365,7 @@ services:
file-monitor:
image: ghcr.io/idaholab/malcolm/file-monitor:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -374,6 +393,7 @@ services:
pcap-capture:
image: ghcr.io/idaholab/malcolm/pcap-capture:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand All @@ -397,6 +417,7 @@ services:
pcap-monitor:
image: ghcr.io/idaholab/malcolm/pcap-monitor:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -424,6 +445,7 @@ services:
upload:
image: ghcr.io/idaholab/malcolm/file-upload:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand All @@ -450,6 +472,7 @@ services:
htadmin:
image: ghcr.io/idaholab/malcolm/htadmin:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand All @@ -476,6 +499,7 @@ services:
freq:
image: ghcr.io/idaholab/malcolm/freq:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand All @@ -499,6 +523,7 @@ services:
netbox:
image: ghcr.io/idaholab/malcolm/netbox:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -532,6 +557,7 @@ services:
netbox-postgres:
image: ghcr.io/idaholab/malcolm/postgresql:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand All @@ -557,6 +583,7 @@ services:
netbox-redis:
image: ghcr.io/idaholab/malcolm/redis:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -586,6 +613,7 @@ services:
netbox-redis-cache:
image: ghcr.io/idaholab/malcolm/redis:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -614,6 +642,7 @@ services:
api:
image: ghcr.io/idaholab/malcolm/api:23.11.0
profiles: ["malcolm"]
logging: *default-logging
command: gunicorn --bind 0:5000 manage:app
restart: "no"
stdin_open: false
Expand All @@ -640,6 +669,7 @@ services:
nginx-proxy:
image: ghcr.io/idaholab/malcolm/nginx-proxy:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down
30 changes: 30 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

version: '3.7'

x-logging:
&default-logging
driver: local
options:
max-size: 200m
max-file: 2
compress: "false"

services:
opensearch:
build:
Expand All @@ -13,6 +21,7 @@ services:
# start but not actually run OpenSearch. It's included in both profiles to
# satisfy some other containers' depends_on.
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -50,6 +59,7 @@ services:
dockerfile: Dockerfiles/dashboards-helper.Dockerfile
image: ghcr.io/idaholab/malcolm/dashboards-helper:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -82,6 +92,7 @@ services:
dockerfile: Dockerfiles/dashboards.Dockerfile
image: ghcr.io/idaholab/malcolm/dashboards:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -112,6 +123,7 @@ services:
dockerfile: Dockerfiles/logstash.Dockerfile
image: ghcr.io/idaholab/malcolm/logstash-oss:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -162,6 +174,7 @@ services:
dockerfile: Dockerfiles/filebeat.Dockerfile
image: ghcr.io/idaholab/malcolm/filebeat-oss:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -200,6 +213,7 @@ services:
image: ghcr.io/idaholab/malcolm/arkime:23.11.0
# todo: viewer/wise in hedgehog profile (and what about nginx reaching back?)
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -245,6 +259,7 @@ services:
dockerfile: Dockerfiles/zeek.Dockerfile
image: ghcr.io/idaholab/malcolm/zeek:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -288,6 +303,7 @@ services:
dockerfile: Dockerfiles/zeek.Dockerfile
image: ghcr.io/idaholab/malcolm/zeek:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -321,6 +337,7 @@ services:
dockerfile: Dockerfiles/suricata.Dockerfile
image: ghcr.io/idaholab/malcolm/suricata:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -359,6 +376,7 @@ services:
dockerfile: Dockerfiles/suricata.Dockerfile
image: ghcr.io/idaholab/malcolm/suricata:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -389,6 +407,7 @@ services:
dockerfile: Dockerfiles/file-monitor.Dockerfile
image: ghcr.io/idaholab/malcolm/file-monitor:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -419,6 +438,7 @@ services:
dockerfile: Dockerfiles/pcap-capture.Dockerfile
image: ghcr.io/idaholab/malcolm/pcap-capture:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand All @@ -445,6 +465,7 @@ services:
dockerfile: Dockerfiles/pcap-monitor.Dockerfile
image: ghcr.io/idaholab/malcolm/pcap-monitor:23.11.0
profiles: ["malcolm", "hedgehog"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down Expand Up @@ -475,6 +496,7 @@ services:
dockerfile: Dockerfiles/file-upload.Dockerfile
image: ghcr.io/idaholab/malcolm/file-upload:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand All @@ -501,6 +523,7 @@ services:
htadmin:
image: ghcr.io/idaholab/malcolm/htadmin:23.11.0
profiles: ["malcolm"]
logging: *default-logging
build:
context: .
dockerfile: Dockerfiles/htadmin.Dockerfile
Expand Down Expand Up @@ -530,6 +553,7 @@ services:
freq:
image: ghcr.io/idaholab/malcolm/freq:23.11.0
profiles: ["malcolm"]
logging: *default-logging
build:
context: .
dockerfile: Dockerfiles/freq.Dockerfile
Expand All @@ -556,6 +580,7 @@ services:
netbox:
image: ghcr.io/idaholab/malcolm/netbox:23.11.0
profiles: ["malcolm"]
logging: *default-logging
build:
context: .
dockerfile: Dockerfiles/netbox.Dockerfile
Expand Down Expand Up @@ -592,6 +617,7 @@ services:
netbox-postgres:
image: ghcr.io/idaholab/malcolm/postgresql:23.11.0
profiles: ["malcolm"]
logging: *default-logging
build:
context: .
dockerfile: Dockerfiles/postgresql.Dockerfile
Expand Down Expand Up @@ -620,6 +646,7 @@ services:
netbox-redis:
image: ghcr.io/idaholab/malcolm/redis:23.11.0
profiles: ["malcolm"]
logging: *default-logging
build:
context: .
dockerfile: Dockerfiles/redis.Dockerfile
Expand Down Expand Up @@ -652,6 +679,7 @@ services:
netbox-redis-cache:
image: ghcr.io/idaholab/malcolm/redis:23.11.0
profiles: ["malcolm"]
logging: *default-logging
build:
context: .
dockerfile: Dockerfiles/redis.Dockerfile
Expand Down Expand Up @@ -683,6 +711,7 @@ services:
api:
image: ghcr.io/idaholab/malcolm/api:23.11.0
profiles: ["malcolm"]
logging: *default-logging
build:
context: .
dockerfile: Dockerfiles/api.Dockerfile
Expand Down Expand Up @@ -715,6 +744,7 @@ services:
dockerfile: Dockerfiles/nginx.Dockerfile
image: ghcr.io/idaholab/malcolm/nginx-proxy:23.11.0
profiles: ["malcolm"]
logging: *default-logging
restart: "no"
stdin_open: false
tty: true
Expand Down

0 comments on commit 2331293

Please sign in to comment.