fix: automatic log rotation with size limits (#144)

This commit is contained in:
Darshan K 2025-01-15 02:22:39 +05:30 committed by GitHub
parent 9609db3c20
commit 32b3b917c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,10 +1,4 @@
version: "3.7"
x-logging: &logging
logging:
driver: json-file
options:
max-size: 1000m
# Environment variable definitions
x-rln-relay-eth-client-address: &rln_relay_eth_client_address ${RLN_RELAY_ETH_CLIENT_ADDRESS:-} # Add your RLN_RELAY_ETH_CLIENT_ADDRESS after the "-"
@ -41,8 +35,13 @@ services:
- 80:80 #Let's Encrypt
- 8000:8000/tcp #WSS
- 127.0.0.1:8645:8645
<<:
- *logging
logging:
driver: json-file
options:
max-size: "100m"
max-file: "10"
compress: "true"
tag: "nwaku-{{.ID}}"
environment:
DOMAIN: ${DOMAIN}
NODEKEY: ${NODEKEY}