This repository has been archived by the owner on Oct 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4bde801
commit 7f771c3
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,17 +4,16 @@ This starter is useful for development purposes and faster environment setup. | |
|
||
It deploys PostgreSQL and Redis containers on a server and the containers are exposed to public. So you can share it among the teammates. | ||
|
||
You can connect to a database using `postgresql://admin:[email protected]:5432/db` or directly with server's IP address `postgresql://admin:[email protected]:5432/db` | ||
|
||
For the full information, check out [the article](). | ||
For the full explanation, check out [the article](). | ||
|
||
### Quick tutorial | ||
|
||
1. Create new droplet in [DigitalOcean](https://digitalocean.com). | ||
2. Clone the repo: | ||
|
||
``` | ||
> git clone https://github.com/kanzitelli/postgres-and-redis-behind-traefik.git backend && cd backend | ||
> git clone https://github.com/kanzitelli/postgres-and-redis-behind-traefik.git backend | ||
> cd backend | ||
``` | ||
|
||
3. Set up `.env` file: | ||
|
@@ -43,9 +42,9 @@ DB_PASS=pass_12345qwerty | |
``` | ||
Postgres: | ||
Domain: postgresql://admin:[email protected]:5432/db | ||
IP address: postgresql://admin:[email protected]:5432:5432/db | ||
IP address: postgresql://admin:[email protected]:5432/db | ||
Redis: | ||
Domain: redis://db.website.com:6379 | ||
IP: redis://46.101.120.53:5432:6379 | ||
IP: redis://46.101.120.53:6379 | ||
``` |