32 lines
535 B
YAML
32 lines
535 B
YAML
|
---
|
||
|
version: '3.4'
|
||
|
|
||
|
networks:
|
||
|
nexus:
|
||
|
external: false
|
||
|
services:
|
||
|
cadvisor:
|
||
|
image: gcr.io/cadvisor/cadvisor
|
||
|
volumes:
|
||
|
- /:/rootfs:ro
|
||
|
- /var/run:/var/run:rw
|
||
|
- /sys:/sys:ro
|
||
|
- /var/lib/docker/:/var/lib/docker:ro
|
||
|
ports:
|
||
|
- 4194:8080
|
||
|
restart: always
|
||
|
networks:
|
||
|
- nexus
|
||
|
|
||
|
nexus:
|
||
|
image: sonatype/nexus3
|
||
|
networks:
|
||
|
- nexus
|
||
|
volumes:
|
||
|
- /mnt/data/nexusdata:/nexus-data
|
||
|
restart: always
|
||
|
ports:
|
||
|
- "127.0.0.1:8080:8081"
|
||
|
- "127.0.0.1:4269:4269"
|
||
|
...
|