docker-compose 之 maven nexus 3.18.1

阅读 72

2022-02-25


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)

0 0 举报