debug
-------
// check docker compose.yml file for service_you_lookfor, ports: '5671:5671', hostname
// find container ID
docker container ls
// find container internal ip
docker inspect <container_id>
// Check if port is open on remote
nc -zv 127.0.0.1 5671
nc -zv <contianer_ip> 5671
// ping hostname
ping hostname
// Go inside docker contianer
docker exec -it <container_id> bash
// Check port
ss -an | grep :5671
// Run command to ensure its ok
// If still doesnt work, port needs ssl authentication, so 5671 is not http/https, need a client to access instead of browser
----
login to postgres
// find container ID
docker container ls
// find container internal ip
docker inspect <container_id>
// Go inside docker contianer
docker exec -it <container_id> bash
// in .env file where docker compose file is find db name credential
// psql -h <container_IP> -U <user_name> <d_b>
// \dt to show all tables
// \q to quit
// SELECT * FROM table 1 ; to query
No comments:
Post a Comment