Sentry Self-Hosted Notes (Sentry.io)

Setting up Traefik with Sentry Self-Hosted

If you’re running Traefik on your docker host, then you’ll need to appropriate labels for Traefik. I’m using Portainer so I had to add the following to the docker-compose.yml under the nginx label

    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.sentry-lmthosting.entrypoints=http"
      - "traefik.http.routers.sentry-lmthosting.rule=Host(`sentry.lmthosting.com`)"
      - "traefik.http.middlewares.sentry-lmthosting-https-redirect.redirectscheme.scheme=https"
      - "traefik.http.routers.sentry-lmthosting.middlewares=sentry-lmthosting-https-redirect"
      - "traefik.http.routers.sentry-lmthosting-secure.entrypoints=https"
      - "traefik.http.routers.sentry-lmthosting-secure.rule=Host(`sentry.lmthosting.com`)"
      - "traefik.http.routers.sentry-lmthosting-secure.tls=true"
      - "traefik.http.routers.sentry-lmthosting-secure.tls.certresolver=http"
      - "traefik.http.routers.sentry-lmthosting-secure.service=sentry-lmthosting"
      - "traefik.http.services.sentry-lmthosting.loadbalancer.server.port=80"
      - "traefik.docker.network=traefik-proxy"
    networks:
      - default
      - traefik-proxy

You will also need to add the appropriate networks at the bottom of the docker-compose.yml

networks:
  default:
    external: false
  traefik-proxy:
    external: true

Reset Sentry Self-Hosted Login

Easily found on https://forum.sentry.io/t/default-username-password/13246

docker-compose run --rm web createuser