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

Development instructions #77

Open
jefflewis opened this issue Nov 16, 2024 · 1 comment
Open

Development instructions #77

jefflewis opened this issue Nov 16, 2024 · 1 comment

Comments

@jefflewis
Copy link

When I run the docker container locally, the container successfully starts, but is inaccessible when visiting the port on localhost:8080.

Am I missing something about a local development environment? I was planning to build the docker image for other work but wanted to start with just the base image here.

> curl http://localhost:8080
curl: (7) Failed to connect to localhost port 8080 after 0 ms: Couldn't connect to server
WARN[0000] /Users/jeff/Developer/jefflewis/SkyBridge/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 1/0
 ✔ Container skybridge  Recreated                                                             0.1s
Attaching to skybridge
skybridge  | Prisma schema loaded from prisma/schema.prisma
skybridge  | Datasource "db": SQLite database "skybridge.db" at "file:../database/skybridge.db"
skybridge  |
skybridge  | 4 migrations found in prisma/migrations
skybridge  |
skybridge  |
skybridge  | No pending migrations to apply.
skybridge  | npm notice
skybridge  | npm notice New minor version of npm available! 10.2.4 -> 10.9.0
skybridge  | npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.9.0>
skybridge  | npm notice Run `npm install -g [email protected]` to update!
skybridge  | npm notice
skybridge  | No .env file found, continuing without one.
skybridge  | Enforcing bridge password.
skybridge  | Attempting to connect to database...
skybridge  | Indexed 0 users and 0 posts.
skybridge  | ✓ Running on http://:::8080
cat docker-compose.yml
version: "3.8"
services:
  skybridge:
    container_name: "skybridge"
    image: videah/skybridge:latest
    restart: always
    volumes:
      - skybridge:/app/database
    environment:
      # Base URL of where SkyBridge will be hosted without the protocol.
      - SKYBRIDGE_BASEURL=localhost
      # Random secret, generate with `openssl rand -base64 32`.
      - SKYBRIDGE_SECRET=super-secret
      # Password used to make a SkyBridge instance private.
      - SKYBRIDGE_AUTH_PASSWORD=super-secret
      # Should a bridge password be required to authenticate?
      - SKYBRIDGE_REQUIRE_AUTH_PASSWORD=true
      # Should a nice index page be shown on the root URL?
      - SKYBRIDGE_SHOW_INDEX=true
      # Allow backfilling/scrolling on timelines? (can cause issues on instances under heavy load)
      - SKYBRIDGE_ALLOW_BACKFILL=true

volumes:
  skybridge:
@jefflewis
Copy link
Author

After further investigation, I think the cause of this is me not having a valid IPV6 address to hand out. IPV6 seems like it should be an optional feature. Would you be open to a PR that allows for configuration with an IPV4 if one cannot be found with the "get ipv6 address" call?

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

1 participant