在docke中安装DOCLever
docker-compose.yml
```js
version: "2"
services:
DOClever:
image: lw96/doclever:latest-ubuntu
restart: always
container_name: "DOClever"
ports:
- 20080:10000
volumes:
- /srv/dockerlever:/root/DOClever/data/file
- /srv/dockerlever:/root/DOClever/data/img
- /srv/dockerlever:/root/DOClever/data/tmp
environment:
# - DB_HOST=mongodb://localhost:27017/DOClever
- PORT=10000
links:
- mongo:mongo
mongo:
image: mymongo
restart: always
container_name: "mongodb"
volumes:
- /srv/dockerlever/db:/data/db
```
执行 docker-compose up -d
说是要 docker-login
执行docker-login
出现了这样的错误
服务器是腾讯云的
正在回答 回答被采纳积分+1
version: "2"
services:
DOClever:
image: lw96/doclever:latest-ubuntu
restart: always
container_name: "DOClever"
ports:
- 20080:10000
volumes:
- /srv/dockerlever:/root/DOClever/data/file
- /srv/dockerlever:/root/DOClever/data/img
- /srv/dockerlever:/root/DOClever/data/tmp
environment:
# - DB_HOST=mongodb://localhost:27017/DOClever
- PORT=10000
links:
- mongo:mongo
mongo:
image: mymongo
restart: always
container_name: "mongodb"
volumes:
- /srv/dockerlever/db:/data/db
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星