From ab7abe06c4bb4b4f3e4f3c9285af6541b02d23fb Mon Sep 17 00:00:00 2001 From: TerenceLau Date: Thu, 6 Oct 2022 07:31:09 +0000 Subject: [PATCH] update nexus --- nexus/docker-compose.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nexus/docker-compose.yml b/nexus/docker-compose.yml index 486f3e1..a5ac2a1 100644 --- a/nexus/docker-compose.yml +++ b/nexus/docker-compose.yml @@ -2,12 +2,17 @@ version: "3.7" services: nexus: image: sonatype/nexus3:latest + deploy: + mode: replicated + replicas: 1 + placement: + constraints: [node.labels.hostname==bohr] environment: - INSTALL4J_ADD_VM_PARAMS: -Xms128m -Xmx512m -XX:MaxDirectMemorySize=256m + INSTALL4J_ADD_VM_PARAMS=$INSTALL4J_ADD_VM_PARAMS container_name: nexus3 restart: always ports: - 8081:8081 - 8082:8082 volumes: - - /home/ubuntu/nexus-data:/nexus-data \ No newline at end of file + - /mnt/nexus-data:/nexus-data \ No newline at end of file