запускаю сайт на том же компьютере
/ip firewall mangle
add chain=prerouting comment="NAT Loopback detect" dst-address=MY_WHITE_IP in-interface-list=LAN connection-state=new action=mark-packet new-packet-mark=nat-loopback passthrough=yes
/ip firewall nat
add chain=srcnat packet-mark=nat-loopback action=masquerade comment="NAT Loopback replace address"
/ip firewall nat
add chain=dstnat dst-address=MY_WHITE_IP protocol=tcp dst-port=80 action=dst-nat to-addresses=SERVER_IP to-port=80
postgres: ## Вот DNS имя контейнера
container_name: postgres_container
image: postgres:14.3-alpine
environment:
- POSTGRES_DB=telegram
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=root1
volumes:
- pgdata:/var/lib/postgresql/data
restart: unless-stopped
networks:
- postgres
mybot:
build: .
depends_on:
- postgres
- pgadmin
command: sh -c 'sleep 35'
restart: on-failure
networks:
- postgres
url = 'postgresql+asyncpg://postgres:1@postgres:5432/telegram
10.15.40.0/24 - 1540 на 10 подсетей