Skip to content

Commit 9488e7f

Browse files
committed
cmd/puppeth: limit cotnainers to 10MB logs
1 parent 23c6fcd commit 9488e7f

5 files changed

Lines changed: 25 additions & 0 deletions

File tree

‎cmd/puppeth/module_dashboard.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,11 @@ services:
425425
- "{{.Port}}:80"{{else}}
426426
environment:
427427
- VIRTUAL_HOST={{.VHost}}{{end}}
428+
logging:
429+
driver: "json-file"
430+
options:
431+
max-size: "1m"
432+
max-file: "10"
428433
restart: always
429434
`
430435

‎cmd/puppeth/module_ethstats.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ services:
6060
environment:
6161
- WS_SECRET={{.Secret}}{{if .VHost}}
6262
- VIRTUAL_HOST={{.VHost}}{{end}}
63+
logging:
64+
driver: "json-file"
65+
options:
66+
max-size: "1m"
67+
max-file: "10"
6368
restart: always
6469
`
6570

‎cmd/puppeth/module_faucet.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ services:
8282
- CAPTCHA_SECRET={{.CaptchaSecret}}{{if .VHost}}
8383
- VIRTUAL_HOST={{.VHost}}
8484
- VIRTUAL_PORT=8080{{end}}
85+
logging:
86+
driver: "json-file"
87+
options:
88+
max-size: "1m"
89+
max-file: "10"
8590
restart: always
8691
`
8792

‎cmd/puppeth/module_nginx.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ services:
4343
- "{{.Port}}:80"
4444
volumes:
4545
- /var/run/docker.sock:/tmp/docker.sock:ro
46+
logging:
47+
driver: "json-file"
48+
options:
49+
max-size: "1m"
50+
max-file: "10"
4651
restart: always
4752
`
4853

‎cmd/puppeth/module_node.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ services:
6868
- MINER_NAME={{.Etherbase}}
6969
- GAS_TARGET={{.GasTarget}}
7070
- GAS_PRICE={{.GasPrice}}
71+
logging:
72+
driver: "json-file"
73+
options:
74+
max-size: "1m"
75+
max-file: "10"
7176
restart: always
7277
`
7378

0 commit comments

Comments
 (0)