Ancestors

Toot

Written by iturnedintoanewt@lemm.ee on 2024-08-22 at 03:27

Jellystat...guide or instructions?

https://lemm.ee/post/40263701

=> More informations about this toot | More toots from iturnedintoanewt@lemm.ee

Descendants

Written by ChillPill@lemmy.world on 2024-08-22 at 04:17

What is jellystat?

=> More informations about this toot | More toots from ChillPill@lemmy.world

Written by ExcessShiv@lemmy.dbzer0.com on 2024-08-22 at 05:18

LMGTFY

=> More informations about this toot | More toots from ExcessShiv@lemmy.dbzer0.com

Written by MeatsOfRage@lemmy.world on 2024-08-22 at 04:41

There’s a link in their Read Me on GitHub under the title about launching with Docker. Are you familiar with Docker?

=> More informations about this toot | More toots from MeatsOfRage@lemmy.world

Written by iturnedintoanewt@lemm.ee on 2024-08-22 at 07:21

Thanks…Yeah I saw it. I have a few docker things deployed. But the “getting started” section completely ignores setting up the Postgresql DB, which very clearly it seems to want. This is not listed as a requirement, but still hinted casually around whenever it mentions the user/pass, environment variables etc.

So…is there anywhere mentioned how to get the whole thing up and running, including docker and postgresql?

=> More informations about this toot | More toots from iturnedintoanewt@lemm.ee

Written by bobslaede@feddit.dk on 2024-08-22 at 07:34

They have a docker-compose.yml file in the repo. It looks like it has everything all ready for you.

=> More informations about this toot | More toots from bobslaede@feddit.dk

Written by iturnedintoanewt@lemm.ee on 2024-09-03 at 03:53

Yeah…I copied the whole of it onto my docker-compose.yml. But after running a docker compose up, and after getting:

docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion

[+] Running 3/3

✔ Network jellystat_default Created 0.1s

✔ Container jellystat-jellystat-db-1 Started 0.9s

✔ Container jellystat-jellystat-1 Started

I still can’t get to connect on myIP:3000, I get nothing, just a “unable to connect” firefox error. Is there anything I should set up/modify on the docker-compose.yml?

=> More informations about this toot | More toots from iturnedintoanewt@lemm.ee

Written by bobslaede@feddit.dk on 2024-09-03 at 05:28

There will probably be something in the logs that tells you what is going wrong. Maybe it can’t connect to the db, or maybe it’s starting on a wrong port or something.

=> More informations about this toot | More toots from bobslaede@feddit.dk

Written by iturnedintoanewt@lemm.ee on 2024-09-03 at 08:43

Sorry i don’t have experience checking docker logs… How do I go about that?

=> More informations about this toot | More toots from iturnedintoanewt@lemm.ee

Written by bobslaede@feddit.dk on 2024-09-03 at 08:57

In the same place as you run your docker compose up command you just type docker compose logs

=> More informations about this toot | More toots from bobslaede@feddit.dk

Written by iturnedintoanewt@lemm.ee on 2024-09-05 at 07:20

Huh…so the log is just an almost infinite loop of these:

jellystat-1 | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)

jellystat-1 | [JELLYSTAT] Database exists. Skipping creation

jellystat-1 | FS-related option specified for migration configuration. This resets migrationSource to default FsMigrations

jellystat-1 | FS-related option specified for migration configuration. This resets migrationSource to default FsMigrations

jellystat-1 | node:internal/process/promises:391

jellystat-1 | triggerUncaughtException(err, true /* fromPromise */);

jellystat-1 | ^

jellystat-1 |

jellystat-1 | Error: getaddrinfo ENOTFOUND jellystat-db

jellystat-1 | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {

jellystat-1 | errno: -3008,

jellystat-1 | code: 'ENOTFOUND',

jellystat-1 | syscall: 'getaddrinfo',

jellystat-1 | hostname: 'jellystat-db'

jellystat-1 | }

=> More informations about this toot | More toots from iturnedintoanewt@lemm.ee

Written by bobslaede@feddit.dk on 2024-09-05 at 07:42

Your passwords for the database does not match.

But the error is about it not being able to reach the database on the hostname.

I can run it with this compose file:

jellystat-db:

image: postgres:16-alpine

container_name: jellystat-db

restart: unless-stopped

environment:

  POSTGRES_USER: ${POSTGRES_USER}

  POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}

volumes:

  - postgres-data:/var/lib/postgresql/data

networks:

  - jellystat

jellystat:

image: cyfershepard/jellystat:latest

container_name: jellystat

restart: unless-stopped

environment:

  POSTGRES_USER: ${POSTGRES_USER}

  POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}

  POSTGRES_IP: jellystat-db

  POSTGRES_PORT: 5432

  JWT_SECRET: ${JWT_SECRET}

  TZ: Europe/Paris # timezone (ex: Europe/Paris)

  JS_BASE_URL: /

volumes:

  - jellystat-backup-data:/app/backend/backup-data

depends_on:

  - jellystat-db

networks:

  - traefik

  - jellystat

labels:

  - traefik.enable=true

  - traefik.docker.network=traefik

  - traefik.http.routers.jellystat.entrypoints=https

  - traefik.http.routers.jellystat.rule=Host(`${HOSTNAME}`)

  - traefik.http.routers.jellystat.tls.certresolver=http

  - traefik.http.routers.jellystat.service=jellystat

  - traefik.http.services.jellystat.loadbalancer.server.port=3000

  - traefik.http.services.jellystat.loadbalancer.server.scheme=http

networks:

jellystat: {}

traefik:

external: true

volumes:

postgres-data: null

jellystat-backup-data: null

=> More informations about this toot | More toots from bobslaede@feddit.dk

Written by iturnedintoanewt@lemm.ee on 2024-09-05 at 12:36

services:

jellystat-db:

image: postgres:16-alpine

container_name: jellystat-db

restart: unless-stopped

environment:

POSTGRES_USER: ${POSTGRES_USER}

POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}

volumes:

networks:

jellystat:

image: cyfershepard/jellystat:latest

container_name: jellystat

restart: unless-stopped

environment:

POSTGRES_USER: ${POSTGRES_USER}

POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}

POSTGRES_IP: jellystat-db

POSTGRES_PORT: 5432

JWT_SECRET: ${JWT_SECRET}

TZ: Europe/Paris # timezone (ex: Europe/Paris)

JS_BASE_URL: /

volumes:

depends_on:

networks:

labels:

networks:

jellystat: {}

traefik:

external: true

volumes:

postgres-data: null

jellystat-backup-data: null

Hmmm thanks but I’m not using traefik…Is it part of the needed setup?

=> More informations about this toot | More toots from iturnedintoanewt@lemm.ee

Written by bobslaede@feddit.dk on 2024-09-05 at 18:56

No. You can leave that out. That was just me showing you that it runs on my machine, with that setup. Just bind the port instead.

=> More informations about this toot | More toots from bobslaede@feddit.dk

Written by iturnedintoanewt@lemm.ee on 2024-09-16 at 15:51

Just came to say thanks…Yeah eventually after copy-pasting it from scratch again, I got it running. Seems to be working now. Thanks again!

=> More informations about this toot | More toots from iturnedintoanewt@lemm.ee

Written by thagoat@lemmy.sdf.org on 2024-08-22 at 14:39

TIL about jellystat. Thank you!

=> More informations about this toot | More toots from thagoat@lemmy.sdf.org

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113003543344225946
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
327.139497 milliseconds
Gemini-to-HTML Time
4.777061 milliseconds

This content has been proxied by September (ba2dc).