nexus manifests added
This commit is contained in:
parent
720db2c6dc
commit
7ee272039e
3
nexus/README.md
Normal file
3
nexus/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
docker stack deploy -c nexus.yml nexus
|
||||||
|
|
||||||
|
|
||||||
43
nexus/nexus.yml
Normal file
43
nexus/nexus.yml
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user