加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 763 Bytes
一键复制 编辑 原始数据 按行查看 历史
version: "4.0"
services:
redis:
container_name: redis
image: "redis:alpine"
restart: always
ports:
- "6379:6379"
mongo:
container_name: mongo
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
volumes:
- ./init-mongodb:/docker-entrypoint-initdb.d
- ./init-mongodb/data:/tmp/data
ports:
- "27017:27017"
web:
build: .
container_name: ${COMPOSE_PROJECT_NAME}
restart: always
environment:
TZ: Asia/Shanghai
mongo.host: mongo
mongo.username: root
mongo.password: root
mongo.database: data-jelly-fish
redis.host: redis
image: data-jelly-fish
ports:
- "8080:8080"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化