fix(api): use port 27017 (#54220)

This commit is contained in:
Shaun Hamilton
2024-04-03 02:07:02 +02:00
committed by GitHub
parent be6d26c757
commit c98e1803a3
2 changed files with 1 additions and 8 deletions

View File

@@ -18,13 +18,6 @@ cd tools
docker compose up -d
```
Once that's running, update the connection string in the `.env` file to use port `27018`.
```txt
# Database
MONGOHQ_URL=mongodb://127.0.0.1:27018/freecodecamp?directConnection=true
```
The new db will be empty, so you can run the seed script to populate it.
```bash

View File

@@ -6,7 +6,7 @@ services:
command: mongod --replSet rs0
restart: unless-stopped
ports:
- 27018:27017
- 27017:27017
volumes:
- db-data:/data
setup: