Change in DSN ip to another address

Hello everyone. Please help me. I need to change the ip in DSN to another address, without a full reinstallation. Is it possible? I did docker-compose down && docker-compose build && docker-compose up -d^ but without result.