Docker install, private docker create network

i have docker create network called “lnet”
would want private ip of 10.22.0.1 for the server
and 10.22.0.2 for the db.

how to make this happen in docker yaml file / .env?

please advice, help appreciated!