- DS718+, DS918+, 2x RS3614RPxs+
- Operating system
- Mobile operating system
This means that the communication between the containers is working fine and that’s ok.Thank you. I tried it and received the following:
[email protected]:~# docker exec -it restyaplatform-restyaboard1 /bin/bash [email protected]:/usr/share/nginx/html# ping postgres PING postgres (172.17.0.2): 56 data bytes 64 bytes from 172.17.0.2: icmp_seq=0 ttl=64 time=0.191 ms 64 bytes from 172.17.0.2: icmp_seq=1 ttl=64 time=0.096 ms 64 bytes from 172.17.0.2: icmp_seq=2 ttl=64 time=0.100 ms #and so on# [email protected]:/usr/share/nginx/html# nc -zv postgres 5433 bash: nc: command not found
Besides that the nc command is not yet in the container (could I fix this?), there are two things that I am the whole time really wondering about:
- Although I changed the restya environment variable POSTGRES_PORT to 5433, the terminal output always tells me: "[...] Is the server running on host [...] and accepting TCP/IP connections on port 5432?" Didn't restya get it that I changed this port number?! Or is this just a stadard error message that doesn't adjust the used port number?
- In the pgadmin statistics table, my "restya" database is listed with the client address "172.17.0.1/32:56607" although I specified a different host IP in the restyas' database's server settings (there I inserted my NAS address like you described). In the ping result above, I also got a 172.17.... address, but a different one. I am confused. Doesn't this mean that my restya environment variable POSTGRES_HOST also should be this 172.17... address?
considering that you are using nas ip address as your postgres host, now you need to make sure that postgres is available on your network on that custom port 5433.
you can test it from your PC. Depending on your OS you can run the same command as before (nc) just change the destination to your nas ip address instead of the container name. Use that command if you are a mac or linux user.
If you are a win user open up command prompt and try this:
telnet nas ip address 5433
if you get info that telnet is missing you can install it using the Windows features options in add remove programs. Telnet client that it. Then try again.
getting a black screen with the telnet command will mean that postgres is running on that port