version: '3.7' services: influxdb: image: influxdb:1.8 volumes: - /mnt/docker/data/influxdb:/var/lib/influxdb ports: - 8086:8086 deploy: resources: limits: cpus: '0.60' memory: 512M reservations: cpus: '0.30' memory: 128M