• 0 Posts
  • 21 Comments
Joined 1 year ago
cake
Cake day: June 1st, 2023

help-circle

  • I’ve fixed the same issue for me.
    Originally I had this in my Local DNS settings in my Pi-Hole:

    - service1.domain	10.0.0.4
    - service2.domain	10.0.0.4
    - service3.domain	10.0.0.5
    

    I changed that to this:

    - host1.domain		10.0.0.4
    - host2.domain		10.0.0.4
    

    And then I added CNAME Records to the services like this:

    - service1.domain	host1.domain
    - service2.domain	host1.domain
    - service3.domain	host2.domain
    

    This fixed the whole thing for me :)

    Edit: Gonna add some more info

    The trick that makes this work, and probably will for you too, and allow you to keep your HTTPS queries, is that Pi Hole will just not ask upstream, if it has the DNS name in the CNAME records. Those CNAME records will have to point to a domain, that Cloudflare doesn’t know about. That way there is no other records upstream that will confuse the DNS server and your browser.
    The hostname you have in your local DNS records that your CNAME points to, will be something only known locally for you.









  • 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:

    services:
      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