mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-26 16:00:56 -04:00
fix(api): use port 27017 (#54220)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -6,7 +6,7 @@ services:
|
||||
command: mongod --replSet rs0
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 27018:27017
|
||||
- 27017:27017
|
||||
volumes:
|
||||
- db-data:/data
|
||||
setup:
|
||||
|
||||
Reference in New Issue
Block a user