nexus manifests added

This commit is contained in:
kube-master@emrekirman.com 2026-01-17 04:34:08 +00:00
parent 720db2c6dc
commit 7ee272039e
2 changed files with 46 additions and 0 deletions

3
nexus/README.md Normal file
View File

@ -0,0 +1,3 @@
docker stack deploy -c nexus.yml nexus

43
nexus/nexus.yml Normal file
View File

@ -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