Hello, so I have following Docker Compose yml file and would like to know if I can assign any IPv4 address to the Containers or does it strictly have to be within the 172.x.x.x range? Essentially the goal is to have the Containers communicate with each other and the Host.

version: "3.7"
services:
  db:
    image: postgres
    networks:
      testnet:
        ipv4_address: 192.168.50.20
    ports:
      - "8001:5432"
  web:
    image: nginx:latest
    networks:
        testnet:
          ipv4_address: 192.168.50.10
    ports:
      - "8000:8000"
networks:
  testnet:
    ipam:
      driver: default
      config:
      - subnet: 192.168.50.0/24