libsql
libsql copied to clipboard
Running the documented Docker Compose build throws an error
Straight from docs:
version: "3"
services:
db:
image: ghcr.io/tursodatabase/libsql-server:main
platform: linux/amd64
ports:
- "8080:8080"
- "5001:5001"
# environment:
# - SQLD_NODE=primary
volumes:
- ./data/libsql:/var/lib/sqld
Throws Error:
/usr/local/bin/docker-entrypoint.sh: line 18: SQLD_HTTP_AUTH: unbound variable
Adding SQLD_HTTP_AUTH
env variable fixes this. Format is basic:$PARAM
where $PARAM
is base64-encoded string "$USERNAME:$PASSWORD"
Alternatively, one can use latest
image tag instead
@LucioFranco this is the problem I was telling you about few days ago. Is this fixed?
The main
image tag isn't very new nor is it used to get anything recent, I recommend using https://github.com/tursodatabase/libsql/pkgs/container/libsql-server these tags so either latest
or one of the sha's.
@boreyko1 thx, the latest
tags work, shouldn't the doc be changes? Or at least accommodate for the main
tag.
Could you paste a link to the wrong docks @mpiorowski please?
@haaawk https://github.com/tursodatabase/libsql/blob/main/docs/DOCKER.md
Thanks!