update nexus

This commit is contained in:
TerenceLau 2022-10-06 07:31:09 +00:00
parent 0aa00fe7ec
commit ab7abe06c4
1 changed files with 7 additions and 2 deletions

View File

@ -2,12 +2,17 @@ version: "3.7"
services: services:
nexus: nexus:
image: sonatype/nexus3:latest image: sonatype/nexus3:latest
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.labels.hostname==bohr]
environment: environment:
INSTALL4J_ADD_VM_PARAMS: -Xms128m -Xmx512m -XX:MaxDirectMemorySize=256m INSTALL4J_ADD_VM_PARAMS=$INSTALL4J_ADD_VM_PARAMS
container_name: nexus3 container_name: nexus3
restart: always restart: always
ports: ports:
- 8081:8081 - 8081:8081
- 8082:8082 - 8082:8082
volumes: volumes:
- /home/ubuntu/nexus-data:/nexus-data - /mnt/nexus-data:/nexus-data