#生成一个网段
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
-
Notifications
You must be signed in to change notification settings - Fork 1
Xu-pixel/cabbage_server
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published