metrico / influxdb3-community

Community InfluxDB 3.0 "IOx" static builds + containers + Examples for Developers & Integrators. Experiment with low-cost storage, unlimited cardinality and FlightSQL APIs
https://metrico.in
39 stars 1 forks source link

Traefik Bad Gateway Error #3

Open dblock247 opened 1 year ago

dblock247 commented 1 year ago

I am trying to run influxdb 3 iox behind traefik proxy. When trying to access the link I get a bad gateway request. Here is my docker compose file.

version: "3.8"
name: iox
services:

  iox:
    container_name: iox
    image: ghcr.io/metrico/iox-musl:latest
    restart: unless-stopped
    networks:
      - proxy
    ports:
      - "8080:8080"
      - "8082:8082"
    volumes:
      - /opt/docker/iox/data:/data
    environment:
      - INFLUXDB_IOX_OBJECT_STORE=file
      - INFLUXDB_IOX_DB_DIR=/data
      - INFLUXDB_IOX_BUCKET=iox
      - INFLUXDB_IOX_CATALOG_DSN=sqlite:///data/catalog.sqlite
      - INFLUXDB_IOX_ROUTER_HTTP_BIND_ADDR=iox:8080
      - INFLUXDB_IOX_ROUTER_GRPC_BIND_ADDR=iox:8081
      - INFLUXDB_IOX_QUERIER_GRPC_BIND_ADDR=iox:8082
      - INFLUXDB_IOX_INGESTER_GRPC_BIND_ADDR=iox:8083
      - INFLUXDB_IOX_COMPACTOR_GRPC_BIND_ADDR=iox:8084
      - INFLUXDB_IOX_PERSIST_HOT_PARTITION_COST=0
      - LOG_FILTER=debug
    expose:
      - 8080
      - 8081
      - 8082
      - 8083
      - 8084
    labels:
      - traefik.enable=true
      - traefik.docker.network=frontend
      - traefik.http.routers.iox.entrypoints=https
      - traefik.http.routers.iox.rule=Host(`domain.dev`)
      - traefik.http.routers.iox.service=iox
      - traefik.http.services.iox.loadbalancer.server.port=8086

networks:
  proxy:
    external: true
lmangani commented 1 year ago

IOx uses different ports for different services and its hard to tell what the problem might be without seeing the request/response

dblock247 commented 1 year ago

it is just a simple get request trying to access the login page. The response is just a 503 bad gateway. You can see the request below. Is it possible you can tell me what ports I should be using if the ones I have above are incorrect. Even better could you demonstrate a proper docker compose file using Traefik proxy?

2 requests
72 B transferred
22 B resources
Content-Length:
11
Date:
Thu, 14 Sep 2023 02:48:09 GMT
Strict-Transport-Security:
max-age=31536000; includeSubDomains; preload
:authority:
domain.dev
:method:
GET
:path:
/
:scheme:
https
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8
Accept-Encoding:
gzip, deflate, br
Accept-Language:
en-US,en;q=0.7
Authorization:
Basic ZGJsb2NrMjQ3OlJhc2NhbDcjOCQ=
Sec-Ch-Ua:
"Chromium";v="116", "Not)A;Brand";v="24", "Brave";v="116"
Sec-Ch-Ua-Mobile:
?0
Sec-Ch-Ua-Platform:
"macOS"
Sec-Fetch-Dest:
document
Sec-Fetch-Mode:
navigate
Sec-Fetch-Site:
none
Sec-Fetch-User:
?1
Sec-Gpc:
1
Upgrade-Insecure-Requests:
1
User-Agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36