• 1 Post
  • 23 Comments
Joined 2 years ago
cake
Cake day: June 21st, 2023

help-circle













  • Figured I’d ask to see if you know if this method is still working? I have mine setup very nearly identically to what you have here, and I have corrected my lemmy.hjson to have the correct hostname and password for the database. The only changes I have made thus far is to remove the HTTP redirection, and to change things like me cert resolver, the Lemmy version, and other small corrections.

    However, all I am getting is a gateway timeout when I try to visit the url I have setup. Do you have any idea why this might be? I’ll provide my docker-compose below.

    version: "3.7"
    
    services:
      web:
        image: dessalines/lemmy:latest
        restart: always
        logging:
          driver: journald
          options:
            tag: "{{.Name}}[{{.ID}}]"
        environment:
          - RUST_LOG="warn,lemmy_server=info,lemmy_api=info,lemmy_api_common=info,lemmy_api_crud=info,lemmy_apub=info,lemmy_db_schema=info,lemmy_db_views=info,lemmy_db_views_actor=info,lemmy_db_views_moderator=info,lemmy_routes=info,lemmy_utils=info,lemmy_websocket=info"
        volumes:
          - /mnt/lemmy/lemmy.hjson:/config/config.hjson
        depends_on:
          - db
        networks:
          - lemmy
          - traefik_default
        labels:
          - traefik.enable=true
          - traefik.http.routers.https_lemmy.rule=Host(`lem.domain.tld`) && (PathPrefix(`/api`, `/pictrs`, `/feeds`, `/nodeinfo`, `/.well-known`) || Method(`POST`) || HeadersRegexp(`Accept`, `^[Aa]pplication/.*`))
          - traefik.http.routers.https_lemmy.entrypoints=https
          - traefik.http.routers.https_lemmy.tls.certresolver=myresolver
      web-frontend:
        image: dessalines/lemmy-ui:latest
        environment:
          - LEMMY_UI_LEMMY_INTERNAL_HOST=web:8536
          - LEMMY_UI_LEMMY_EXTERNAL_HOST=localhost:1236
          - LEMMY_HTTPS=true
        depends_on:
          - web
        restart: always
        logging:
          driver: journald
          options:
            tag: "{{.Name}}[{{.ID}}]"
        networks:
          - lemmy
          - traefik_default
        labels:
          - traefik.enable=true
          - traefik.http.routers.https_lemmy_static.rule=Host(`lem.domain.tld`)
          - traefik.http.routers.https_lemmy_static.entrypoints=https
          - traefik.http.routers.https_lemmy_static.tls.certresolver=myresolver
      db:
        image: postgres:15-alpine
        hostname: db
        environment:
          - POSTGRES_USER=lemmy
          - POSTGRES_PASSWORD=LONGstringOFcharacters
        volumes:
          - /mnt/lemmy/db:/var/lib/postgresql/data
          - ./customPostgresql.conf:/etc/postgresql.conf
        restart: always
        logging:
          driver: journald
          options:
            tag: "{{.Name}}[{{.ID}}]"
        networks:
          - lemmy
    
    networks:
      traefik_default:
        external: true
      lemmy:
        driver: bridge
    volumes:
      db: