Skip to content

Documentation Request: Improve Self-Host Documentation #419

Description

@ctriley

Hi! I'm trying to self-host a y-sweet server. There seems to be little documentation on this. The best guide I've found is the docker-compose.yml file in this repo. However, this doesn't show what env variables are required for s3 support. For that I had to read https://github.com/jamsocket/y-sweet/blob/main/docs/running.md

Additionally, while the README says that y-sweet will pick up your local aws credentials, it actually doesn't work unless you have AWS_ACCESS_KEY_ID set. You cannot use the standard Default Credential Provider Chain.

It would also be great to have an example of how to get an ingress to recognize the service is healthy seeing as it returns a 404 error on /

This should all probably be unified in a more comprehensive example in a readme somewhere.

services:
  y-sweet:
    restart: unless-stopped
    image: ghcr.io/jamsocket/y-sweet:latest
    build:
      dockerfile: Dockerfile
      context: ../crates
    command:
      "y-sweet serve ./data --host 0.0.0.0 --auth AXO33rILFt0ZOP7v9NM8e2u6m1pVWvCS5HI9mYMK --url-prefix=http://localhost/"
    volumes:
      - ./data:/data
    ports:
      - "8080:8080"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions