Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running the documented Docker Compose build throws an error #1312

Open
mpiorowski opened this issue Apr 12, 2024 · 7 comments
Open

Running the documented Docker Compose build throws an error #1312

mpiorowski opened this issue Apr 12, 2024 · 7 comments

Comments

@mpiorowski
Copy link

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
@boreyko1
Copy link

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

@haaawk
Copy link
Contributor

haaawk commented Apr 16, 2024

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

@LucioFranco
Copy link
Contributor

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.

@mpiorowski
Copy link
Author

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

@haaawk
Copy link
Contributor

haaawk commented Apr 17, 2024

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

@mpiorowski
Copy link
Author

@haaawk
Copy link
Contributor

haaawk commented Apr 17, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants