Skip to content

OpenStock is an open-source alternative to expensive market platforms. Track real-time prices, set personalized alerts, and explore detailed company insights — built openly, for everyone, forever free.

use a host mapping so that mongodb resolves to 127.0.0.1 in the builder

Nickc35d930f21a4
diff --git a/README.md b/README.md
index 182ec11..e63925e 100644
--- a/README.md
+++ b/README.md
@@ -257,7 +257,7 @@ Local (Docker Compose) MongoDB:
NODE_ENV=development
# Database (Docker)
-MONGODB_URI=mongodb://root:[email protected]:27017/openstock?authSource=admin
+MONGODB_URI=mongodb://root:example@mongodb:27017/openstock?authSource=admin
# Better Auth
BETTER_AUTH_SECRET=your_better_auth_secret
diff --git a/docker-compose.yml b/docker-compose.yml
index 16ad864..8632b80 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -3,6 +3,8 @@ services:
build:
context: .
network: host
+ extra_hosts:
+ - "mongodb=127.0.0.1"
ports:
- "3000:3000"
env_file: