HTTPS not working in Docker container

Hi all,

I’m a newbie and I am trying to setup an InfluxDB 2.2 container with HTTPS.

  • I have set INFLUXD_TSL_KEY and INFLUXD_TSL_CERT in Docker Compose.
  • I have letsencrypt certs, the folder containing these files is mapped to “/etc/ssl/” in Docker Compose
  • The certs are valid (used by other containers on same host / different port)
  • HTTP works fine on port 8086, I can access the GUI and I can log in.
  • HTTPS does not work:
    • firefox, safari and chrome all fail (ff for example says “SSL_ERROR_RX_RECORD_TOO_LONG”)
    • curl -v https://192.168.1.20:8086/api/v2/ping fails with error “alert protocol version”.
  • Using CLI, I can see the key and cert file under /etc/ssl/, hence Docker Compose mapping seems to work.

In the container logs, I do not see any error so far unfortunately.

Has anyone an idea what the issue could be?

You’ve a typo, the env variables are INFLUXD_TLS_CERT and INFLUXD_TLS_KEY.

noooooo… How did I miss this for hours. :see_no_evil:

Thanks!!