Two nodes on same machine using docker

I have installed a fresh server with ubuntu 22.
I have set 2 public ips on this server:

I have migrated my 2 existing nodes here.

Here are my nodes:

docker run -d --restart unless-stopped --stop-timeout 300 \
    -p 28901:28967/tcp \
    -p 28901:28967/udp \
    -p \
    -e EMAIL="" \
    -e ADDRESS="xx.xx.xx.21:28901" \
    -e STORAGE="14TB" \
    --mount type=bind,source="/root/.local/share/storj/identity/storagenode",destination=/app/identity \
    --mount type=bind,source="/storj/data",destination=/app/config \
    --name storagenode storjlabs/storagenode:latest
docker run -d --restart unless-stopped --stop-timeout 300 \
    -p 28902:28967/tcp \
    -p 28902:28967/udp \
    -p \
    -e EMAIL="" \
    -e ADDRESS="xx.xx.xx.22:28902" \
    -e STORAGE="14.5TB" \
    --mount type=bind,source="/root/.local/share/storj/identity/storagenode2",destination=/app/identity \
    --mount type=bind,source="/storj2/data",destination=/app/config \
    --name storagenode2 storjlabs/storagenode:latest

My nodes has started but I see this port (7778) for both of them:
External xx.xx.xx.21:28901

External xx.xx.xx.22:28902

Is it ok? And is it ok to use 28967 for both of them?

Yes. All correct.

Docker gives each Container an (different) internal ip. So using 28967 in Container is fine.

I recommend you copy the identity to the disk of the data.
This will save you headache when you forget to back it up after formatting your OS.