Xubuntu 20.4, Xdebug 3 and Docker: Impossible to connect from container to host

I found the problems myself... I was missing the network configuration in my docker-composer.yaml file, I added and now it looks like so:

version: '3.7'

services:

  rest-mysql:
    container_name: rest-mysql
    image: mysql:latest
    environment:
      MYSQL_DATABASE: gotrendier
      MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
    networks:
      - go-rest.local
    ports:
      - "3307:3306"

  rest-php-8:
    container_name: rest-php
    build: ./docker/php/
    expose:
       - 9000
    networks:
      - go-rest.local
    volumes:
      - .:/var/www/html
      - ./docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
      - ./docker/php/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
    extra_hosts:
      - "host.internal.docker:host-gateway"

  nginx:
    container_name: rest-nginx
    image: nginx
    restart: unless-stopped
    networks:
      - go-rest.local
    volumes:
      - ./docker/nginx/.htpasswd:/etc/nginx/.htpasswd:ro
      - ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
      - ./docker/nginx/config:/etc/nginx/conf.d:ro
      - ./:/var/www/html
    ports:
      - "80:80"

  rest-redis:
    container_name: rest-redis
    image: redis:alpine
    networks:
      - go-rest.local
    ports:
      - "6380:6379"

networks:
  go-rest.local: