I want to setup a Qdrant vector database on fly so that
- there is a SERVICE_API_KEY
- I can access it in my browser
https://<app-name>.fly.dev
- A JS/TS client can connnect to it at
https://<app-name>.fly.dev:6333
- There are health checks on the machine
So far I have the following toml
app = ''
primary_region = ''
kill_signal = 'SIGTERM'
kill_timeout = '5m0s'
[env]
QDRANT__CLUSTER__ENABLED = 'true'
QDRANT__SERVICE__HOST = '::'
QDRANT__STORAGE__SNAPSHOTS_PATH = '/data/qdrant/snapshots'
QDRANT__STORAGE__STORAGE_PATH = '/data/qdrant/storage'
[[mounts]]
source = 'qdrant_data'
destination = '/data'
[[services]]
protocol = 'tcp'
internal_port = 6333
auto_stop_machines = false
auto_start_machines = true
min_machines_running = 0
[[services.ports]]
port = 6333
handlers = ['http']
[[services.http_checks]]
interval = 10000
grace_period = "5s"
method = "get"
path = "/healthz"
protocol = "http"
timeout = 2000
tls_skip_verify = false
[[services]]
protocol = 'tcp'
internal_port = 6334
[[services.ports]]
port = 6334
[services.ports.tls_options]
alpn = ['h2']
[[services.tcp_checks]]
interval = '15s'
grace_period = '10s'
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
[[metrics]]
port = 6333
path = '/metrics'
which is borrowed from this github repo
This is my Dockerfile
ARG QDRANT_VERSION=v1.13.0
FROM qdrant/qdrant:${QDRANT_VERSION}
WORKDIR /qdrant
COPY . /qdrant
RUN apt-get update && apt-get install ca-certificates iptables dnsutils --no-install-recommends -y
RUN chmod +x /qdrant/start.sh
CMD ["/qdrant/start.sh"]
The problem is that I can only connect via http to the server and not through https. Furthermore I cannot access the db at https://<app-name>.fly.dev
.
How do I fix this and what did I do wrong ? Any help would be greatly appreciated.