File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -25,3 +25,32 @@ fly volumes create pg_data --region <region> --size <volume-size-in-gb>
2525```
2626fly deploy .
2727```
28+
29+ ## Connecting
30+
31+ Fly apps within the same organization can connect to your Postgres using the following URI:
32+
33+ ```
34+ postgres://<user>:<password>@<postgres-app-name>.internal:5432/<database-name>
35+ ```
36+
37+ ### Connecting to Postgres from your local machine
38+
39+ 1 . Setup WireGuard Tunnel ( If you haven’t already )
40+ Follow the steps provided here: https://fly.io/docs/reference/privatenetwork/#private-network-vpn
41+
42+ 2 . Postgres needs to be installed on your local machine.
43+
44+ 3 . Use psql to connect to your Postgres instance.
45+ ```
46+ psql postgres://postgres:<password>@<postgres-app-name>.internal:5432
47+ ```
48+
49+
50+ ## Having trouble?
51+
52+ Create an issue or ask a question here: https://community.fly.io/
53+
54+
55+ ## Contributing
56+ If you're looking to get involved, fork the project and send pull requests.
You can’t perform that action at this time.
0 commit comments