add all services that have no secret stuff
This commit is contained in:
31
roles/nexus/files/docker-compose.yaml
Normal file
31
roles/nexus/files/docker-compose.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
---
|
||||
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"
|
||||
...
|
9
roles/nexus/tasks/main.yaml
Normal file
9
roles/nexus/tasks/main.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Copy docker-compose configuration
|
||||
ansible.builtin.copy:
|
||||
src: docker-compose.yaml
|
||||
dest: /home/service-user/docker-compose.yaml
|
||||
owner: service-user
|
||||
group: service-user
|
||||
mode: '0644'
|
||||
...
|
Reference in New Issue
Block a user