How to update generated SSL certificate

I’m using the Gitlab Docker image with Docker Compose. This is my configuration

services:
  web:
    image: 'gitlab/gitlab-ce:15.6.1-ce.0'
    restart: always
    hostname: 'gitlab'
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        external_url 'https://gitlab:1443'
        registry_external_url 'https://gitlab:5050'
        gitlab_rails['gitlab_shell_ssh_port'] = 1022
    ports:
      - 5050:5050
      - '1080:1080'
      - '1443:1443'
      - '1022:22'
    volumes:
      - '/data/gitlab/config:/etc/gitlab'
      - '/data/gitlab/logs:/var/log/gitlab'
      - '/data/gitlab/data:/var/opt/gitlab'
    shm_size: '256m'
  runner:
    image: 'gitlab/gitlab-runner:v15.6.1'
    restart: always
    depends_on:
      - web
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /data/gitlab-runner/config:/etc/gitlab-runner
      - /data/gitlab-runner/data:/home/gitlab-runner

This configuration generates an SSL certificate in /etc/gitlab/ssl consisting of gitlab.crt and gitlab.key. This certificate is valid for one month and isn’t automatically updated. Why is it not automatically updated/refreshed? How can I manually refresh it? Currently, the only way I’ve found is to delete both files and restart the server. Is this the only way?