Change docker-compose.yml version to 2, add logging settings (#2)
- `docker-compose.yml` 2.0 and 3.0+ have different compatibility with different Docker versions and it's [preferable](https://stackoverflow.com/a/53636006/961092) to use 2.0 when you don't use swarm; - without logging settings in `docker-compose.yml` Monit container could clog host machine disk space with log in a long-running scenario
This commit is contained in:
parent
8701a84fb6
commit
20ce352f6e
@ -1,7 +1,12 @@
|
||||
version: '3'
|
||||
version: "2"
|
||||
services:
|
||||
monit:
|
||||
image: "kijart/monit"
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "5"
|
||||
ports:
|
||||
- 2812:2812
|
||||
volumes:
|
||||
|
Loading…
Reference in New Issue
Block a user