#生成一个网段
docker network create cabbage
#启动数据库
docker run -itd --network cabbage --name mongo mongo
#构建后端
docker build . -t cabbage_server
#启动后端
docker run -d --network cabbage -p 8000:8000 -e MONGO_URL=mongodb://mongo:27017 cabbage_server
# 数据库 监控
docker run --net cabbage -e ME_CONFIG_MONGODB_SERVER=mongo -p 8081:8081 mongo-express
forked from Xu-pixel/cabbage_server
-
Notifications
You must be signed in to change notification settings - Fork 0
suiyu4073/cabbage_server
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
cabbage_server
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- TypeScript 99.0%
- Dockerfile 1.0%