Skip to content
Snippets Groups Projects
docker-compose.yml 1.11 KiB
Newer Older
version: "3.7"

volumes:
  influxdb:
    name: influxdb

networks:
  docker_default:
    external: true
  metrics-bot:
    image: registry.picasoft.net/pica-metrics-bot:v1.0.1
    container_name: pica-metrics-services
    environment:
      - INTERVAL_SECONDS=60
    env_file: ./secrets/account.secrets
    networks:
      - metrics
      image: influxdb:1.7.10-alpine
      container_name: influxdb-services
      volumes:
        - influxdb:/var/lib/influxdb
      environment:
        - INFLUXDB_HTTP_AUTH_ENABLED=true
        - INFLUXDB_DATA_MAX_VALUES_PER_TAG=0
        # See https://docs.influxdata.com/influxdb/v1.7/administration/upgrading/#switch-between-tsm-and-tsi-indexes
        - INFLUXDB_DATA_INDEX_VERSION=tsi1
        - INFLUXDB_REPORTING_DISABLED=true
      env_file: ./secrets/influxdb.secrets
      labels:
        traefik.frontend.rule: "Host:influxdb.picasoft.net"
        traefik.port: 8086
        traefik.enable: true
      networks:
        - metrics
        - docker_default
      restart: always