2022-10-06 05:42:23 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
|
|
nexus:
|
2022-10-06 16:39:31 +00:00
|
|
|
image: sonatype/nexus3:3.6.1
|
2022-10-06 07:31:09 +00:00
|
|
|
deploy:
|
2022-10-06 16:39:31 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpus: '0.75'
|
|
|
|
memory: 512M
|
2022-10-06 07:31:09 +00:00
|
|
|
mode: replicated
|
2022-10-06 14:36:03 +00:00
|
|
|
replicas: 1
|
2022-10-06 16:16:41 +00:00
|
|
|
placement:
|
|
|
|
constraints: [node.hostname==einstein]
|
2022-10-06 05:42:23 +00:00
|
|
|
environment:
|
2022-10-06 15:55:31 +00:00
|
|
|
INSTALL4J_ADD_VM_PARAMS: -Xms128m -Xmx512m -XX:MaxDirectMemorySize=512m
|
2022-10-06 05:42:23 +00:00
|
|
|
container_name: nexus3
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 8081:8081
|
|
|
|
- 8082:8082
|
|
|
|
volumes:
|
2022-10-06 15:55:31 +00:00
|
|
|
- /mnt/bucket/nexus:/nexus-data
|