version: '2' services: influxdb: image: influxdb restart: always ports: - 8086:8086 volumes: - ./influxdb:/var/lib/influxdb