version: '3'

services:
  influxdb:
    image: influxdb:latest
    volumes:
      - ./influxdb.yml:/etc/influxdb2/config.yml
      - data:/var/lib/influxdb2
    restart: always
    networks:
      apps:
        aliases:
          - influxdb

volumes:
  data:

networks:
  apps:
    external: true