Manifests/nexus/nexus.yml
kube-master@emrekirman.com 7ee272039e nexus manifests added
2026-01-17 04:34:08 +00:00

44 lines
889 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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