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:
Dmitry Verkhoturov 2020-09-12 13:41:23 +02:00 committed by GitHub
parent 8701a84fb6
commit 20ce352f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,12 @@
version: '3' version: "2"
services: services:
monit: monit:
image: "kijart/monit" image: "kijart/monit"
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
ports: ports:
- 2812:2812 - 2812:2812
volumes: volumes: