scribble-rs / scribble.rs

A skribbl.io alternative - Play at https://scribblers.fly.dev
BSD 3-Clause "New" or "Revised" License
425 stars 185 forks source link

Selfhosted Solution Unable to Connect to NGINX #349

Open F1zzyD opened 4 days ago

F1zzyD commented 4 days ago

Step one: Converted Docker run to Docker Compose file Step two: Edited ports to fit my needs Step three: Added entry into NGINX per this page Step four: Connection is never established or is able to connect. Step five: Scrap the idea since it doesn't work.

Here is what I used as a compose file:

services:
    scribble.rs:
        pull_policy: always
        environment:
            - PORT=6343
        ports:
            - 6343:8080
        image: biosmarcel/scribble.rs:latest
Bios-Marcel commented 4 days ago

Hey, sadly I can't help you with nginx, as I don't use it myself.

However, I am not sure the docker compose file is correct? shouldn't the inner port be on the right?

services:
    scribble.rs:
        pull_policy: always
        environment:
            - PORT=6343
        ports:
            - 8080:6343
        image: biosmarcel/scribble.rs:latest

You could test on your machine, whether the server can be reached at all by sending some dummy request:

curl http://localhost:8080/v1/stats