libsql icon indicating copy to clipboard operation
libsql copied to clipboard

Running the documented Docker Compose build throws an error

Open mpiorowski opened this issue 10 months ago • 7 comments

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

mpiorowski avatar Apr 12 '24 11:04 mpiorowski

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

boreyko1 avatar Apr 12 '24 23:04 boreyko1

@LucioFranco this is the problem I was telling you about few days ago. Is this fixed?

haaawk avatar Apr 16 '24 17:04 haaawk

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.

LucioFranco avatar Apr 16 '24 18:04 LucioFranco

@boreyko1 thx, the latest tags work, shouldn't the doc be changes? Or at least accommodate for the main tag.

mpiorowski avatar Apr 17 '24 11:04 mpiorowski

Could you paste a link to the wrong docks @mpiorowski please?

haaawk avatar Apr 17 '24 11:04 haaawk

@haaawk https://github.com/tursodatabase/libsql/blob/main/docs/DOCKER.md

mpiorowski avatar Apr 17 '24 11:04 mpiorowski

Thanks!

haaawk avatar Apr 17 '24 11:04 haaawk