Skip to content

Commit

Permalink
fix: Allow use of dynamic port for Nango DB in docker compose. (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oluwatobi Adenekan authored Apr 11, 2023
1 parent 8500577 commit 5372298
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
POSTGRES_USER: nango
POSTGRES_DB: nango
ports:
- '5432:5432'
- '${NANGO_DB_PORT:-5432}:5432'
volumes:
- ./nango-data:/var/lib/postgresql/data
networks:
Expand Down
7 changes: 7 additions & 0 deletions docs/docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ git clone https://github.com/NangoHQ/nango.git && cd nango
docker compose up # Keep the tab open
```

In the case you are already using port 5432 on your local machine, you can use

```bash
git clone https://github.com/NangoHQ/nango.git && cd nango
NANGO_DB_PORT=2345 docker compose up # Keep the tab open
```

Once Nango is running locally, open the [dashboard](http://localhost:3003/) in your browser.

</TabItem>
Expand Down

0 comments on commit 5372298

Please sign in to comment.