0
点赞
收藏
分享

微信扫一扫

docker-compose 之 maven nexus 3.18.1

半夜放水 2022-02-25 阅读 72
dockerjson


docker-compose.yml 文件内容如下

version: '3'
services:
nexus3:
image: sonatype/nexus3:3.18.1
container_name: nexus3
volumes:
- /opt/soft/nexus3/data:/nexus-data
ports:
- 8081:8081
environment:
TZ: Asia/Shanghai
networks:
- shanhy-ci
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"

networks:
shanhy-ci:
driver: bridge

注意提前创建volumes挂载的目录,并给执行chmod a+w * 设定可写权限

(END)



举报

相关推荐

0 条评论