diff --git a/nexus/README.md b/nexus/README.md new file mode 100644 index 0000000..c521cdf --- /dev/null +++ b/nexus/README.md @@ -0,0 +1,3 @@ +docker stack deploy -c nexus.yml nexus + + diff --git a/nexus/nexus.yml b/nexus/nexus.yml new file mode 100644 index 0000000..f002a87 --- /dev/null +++ b/nexus/nexus.yml @@ -0,0 +1,43 @@ +version: '3.8' + +services: + nexus: + image: sonatype/nexus3:latest + ports: + - target: 8081 + published: 8085 + protocol: tcp + mode: host + - target: 5000 + published: 5000 + protocol: tcp + mode: host + - target: 5001 + published: 5001 + protocol: tcp + mode: host + environment: + - INSTALL4J_ADD_VM_PARAMS=-Xms2g -Xmx2g -XX:MaxDirectMemorySize=2g + volumes: + - nexus-data:/nexus-data + networks: + - nexus-net + deploy: + mode: replicated + replicas: 1 + placement: + constraints: + - node.labels.platform == dev # Veri tutarlılığı için belirli bir node'a sabitlemek güvenlidir + resources: + limits: + memory: 4G + reservations: + memory: 2G + +networks: + nexus-net: + driver: overlay + +volumes: + nexus-data: + driver: local