Fix mongosh, DCA price, compose healthcheck and cleanup

This commit is contained in:
yeasy
2026-04-27 14:17:57 +00:00
parent 04fd53ea3c
commit 37e376d578
7 changed files with 18 additions and 12 deletions
+2 -2
View File
@@ -25,13 +25,13 @@ $ docker run --name some-mongo -d --network my-mongo-net mongo
```bash
$ docker run --name some-app -d --network my-mongo-net application-that-uses-mongo
```
或者通过 `mongo`
或者通过 `mongosh`MongoDB 6.0+ 已弃用 `mongo`请使用 `mongosh`
```bash
$ docker run -it --rm \
--network my-mongo-net \
mongo \
sh -c 'exec mongo "some-mongo:27017/test"'
sh -c 'exec mongosh "mongodb://some-mongo:27017/test"'
```
### Dockerfile
-2
View File
@@ -28,8 +28,6 @@ $ docker run -it --rm --name my-running-app my-nodejs-app
```bash
$ docker run -it --rm \
--name my-running-script \
# -v "$ ":/usr/src/myapp \
--mount type=bind,src="$(pwd)",target=/usr/src/myapp \
-w /usr/src/myapp \
node:20-alpine \