Custom favicon & logo not appearing

I use gitea in a docker container and when I tried setting a custom favicon & logo by putting the images to the GITEA_CUSTOM/public/assets/img, but none of the images i put there showed up. Tried redoing the process 7 times, It just didn’t work.

What steps did you take to replace images? Are you certain the $GITEA_CUSTOM is correct folder? What does Docker compose.yml look like?

  1. Set the GITEA_CUSTOM variable in docker-compose.yml
  2. Ran docker-compose up -d
  3. Made $GITEA_CUSTOM/public/assets/img
  4. Uploaded the files using curl --output filename.png https://url-to-file.tld/file/image.png. I also did the same with other .svg and .png files (i converted png files into svg before uploading them)

My docker-compose is:

version: '3'
networks:
  gitea:
    external: false

services:
  server:
    image: gitea/gitea:1.20.5
    container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - GITEA_CUSTOM=/data/gitea/custom
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - '3000:3000'
      - '222:22'

I believe this is the incorrect directory. According to docs, it should be $GITEA_CUSTOM/public/img (Customizing Gitea | Gitea Documentation).