system_administration:networking:powerbi_connection_to_postgres

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
system_administration:networking:powerbi_connection_to_postgres [2023/07/31 12:32] – created nadirsystem_administration:networking:powerbi_connection_to_postgres [2023/08/11 11:13] (current) aziz
Line 7: Line 7:
   * Open your docker-compose.yml file for editing (you can use any text editor you are comfortable with).   * Open your docker-compose.yml file for editing (you can use any text editor you are comfortable with).
   * Find the section for your PostgreSQL service in the docker-compose.yml file and add the ports. It should look something like this:   * Find the section for your PostgreSQL service in the docker-compose.yml file and add the ports. It should look something like this:
-<code>+<code yaml>
 db: db:
     image: postgres     image: postgres
Line 30: Line 30:
   * Run the following command to allow incoming traffic to the PostgreSQL port (5432):   * Run the following command to allow incoming traffic to the PostgreSQL port (5432):
 <cli> <cli>
-$ iptables -t nat -A PREROUTING -p tcp --dport 7*** -j DNAT --to-destination <VM_IP>:5432+$ iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 7*** -j DNAT --to-destination <VM_IP>:5432
 </cli> </cli>
  
Line 46: Line 46:
   * Click on "Get Data" from the Home tab.   * Click on "Get Data" from the Home tab.
   * In the "Get Data" window, select "Database" and then "PostgreSQL" from the list.   * In the "Get Data" window, select "Database" and then "PostgreSQL" from the list.
-  * Enter the IP address of your Server in the "Server" field followed by :7*** which is the port you chose earlier.It should look like this +  * Enter the IP address of your Server in the "Server" field followed by :7* which is the port you chose earlier.It should look like this 
-   Server_IP:7***+   <code> Server_IP:7*** </code>
   * In the "Database" field, enter the name of the database you want to connect to (or leave it blank to connect to the default database).   * In the "Database" field, enter the name of the database you want to connect to (or leave it blank to connect to the default database).
   * Enter the PostgreSQL username and password you defined in the docker-compose.yml file.   * Enter the PostgreSQL username and password you defined in the docker-compose.yml file.
  • system_administration/networking/powerbi_connection_to_postgres.1690803122.txt.gz
  • Last modified: 2023/07/31 12:32
  • by nadir