Skip to content

Commit 7afbed5

Browse files
Shaun DavisShaun Davis
authored andcommitted
Merge branch 'master' of github.com:fly-apps/postgres-standalone into master
2 parents 6a06f42 + e9a1c6e commit 7afbed5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,32 @@ fly volumes create pg_data --region <region> --size <volume-size-in-gb>
2525
```
2626
fly 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.

0 commit comments

Comments
 (0)