Closed hagianghi closed 2 months ago
Describe the problem
json.log in Management container too big (54GB)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
this log file grow fast (1GB after 24h)
Are you using NetBird Cloud?
I'm using self-hosted netbird
Screenshots
Additional context
my docker-compose.yml
version: "3.4" services:
caddy: image: caddy restart: unless-stopped networks: [ netbird ] ports:
dashboard: image: netbirdio/dashboard:latest restart: unless-stopped networks: [netbird] env_file:
signal: image: netbirdio/signal:latest restart: unless-stopped networks: [netbird] logging: driver: "json-file" options: max-size: "500m" max-file: "2"
management: image: netbirdio/management:latest restart: unless-stopped networks: [netbird] volumes:
coturn: image: coturn/coturn restart: unless-stopped domainname: netbird.relay.selfhosted volumes:
zitadel: restart: 'always' networks: [netbird] image: 'ghcr.io/zitadel/zitadel:v2.31.3' command: 'start-from-init --masterkeyFromEnv --tlsMode external' env_file:
crdb: restart: 'always' networks: [netbird] image: 'cockroachdb/cockroach:v22.2.2' command: 'start-single-node --advertise-addr crdb' volumes:
volumes: netbird_management: netbird_caddy_data: netbird_crdb_data: netbird_crdb_certs: netbird_zitadel_certs:
networks: netbird:
done now, just clear docker logs sudo sh -c 'truncate -s 0 /var/lib/docker/containers//-json.log'
Describe the problem
json.log in Management container too big (54GB)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
this log file grow fast (1GB after 24h)
Are you using NetBird Cloud?
I'm using self-hosted netbird
Screenshots
Additional context
my docker-compose.yml
version: "3.4" services:
Caddy reverse proxy
caddy: image: caddy restart: unless-stopped networks: [ netbird ] ports:
UI dashboard
dashboard: image: netbirdio/dashboard:latest restart: unless-stopped networks: [netbird] env_file:
Signal
signal: image: netbirdio/signal:latest restart: unless-stopped networks: [netbird] logging: driver: "json-file" options: max-size: "500m" max-file: "2"
Management
management: image: netbirdio/management:latest restart: unless-stopped networks: [netbird] volumes:
Coturn, AKA relay server
coturn: image: coturn/coturn restart: unless-stopped domainname: netbird.relay.selfhosted volumes:
Zitadel - identity provider
zitadel: restart: 'always' networks: [netbird] image: 'ghcr.io/zitadel/zitadel:v2.31.3' command: 'start-from-init --masterkeyFromEnv --tlsMode external' env_file:
CockroachDB for zitadel
crdb: restart: 'always' networks: [netbird] image: 'cockroachdb/cockroach:v22.2.2' command: 'start-single-node --advertise-addr crdb' volumes:
volumes: netbird_management: netbird_caddy_data: netbird_crdb_data: netbird_crdb_certs: netbird_zitadel_certs:
networks: netbird: