use a host mapping so that mongodb resolves to 127.0.0.1 in the builder
This commit is contained in:
parent
5ed18338f7
commit
c35d930f21
|
|
@ -257,7 +257,7 @@ Local (Docker Compose) MongoDB:
|
||||||
NODE_ENV=development
|
NODE_ENV=development
|
||||||
|
|
||||||
# Database (Docker)
|
# Database (Docker)
|
||||||
MONGODB_URI=mongodb://root:example@127.0.0.1:27017/openstock?authSource=admin
|
MONGODB_URI=mongodb://root:example@mongodb:27017/openstock?authSource=admin
|
||||||
|
|
||||||
# Better Auth
|
# Better Auth
|
||||||
BETTER_AUTH_SECRET=your_better_auth_secret
|
BETTER_AUTH_SECRET=your_better_auth_secret
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
network: host
|
network: host
|
||||||
|
extra_hosts:
|
||||||
|
- "mongodb=127.0.0.1"
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
env_file:
|
env_file:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue