-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-stack-deploy-nexus.yml
41 lines (41 loc) · 1.52 KB
/
docker-stack-deploy-nexus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "3.7"
services:
nexus:
image: sonatype/nexus3:latest
hostname: nexus
user: root
environment:
NEXUS_CONTEXT: v3
networks:
- web
volumes:
- type: volume
source: nexus_data
target: /nexus-data
volume:
nocopy: true
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.nexus.rule=Host(`nexus.dev.mytraefik.com`)"
- "traefik.http.routers.nexus.service=nexus-service"
- "traefik.http.services.nexus-service.loadbalancer.server.port=8081"
- "traefik.http.routers.nexus.entrypoints=websecure"
- "traefik.http.routers.nexus.tls=true"
- "traefik.http.routers.nexus.tls.certresolver=mytraefik-resolver"
- "traefik.http.routers.docker.rule=Host(`registry.dev.mytraefik.com`)"
- "traefik.http.routers.docker.service=docker-service"
- "traefik.http.services.docker-service.loadbalancer.server.port=5000"
- "traefik.http.routers.docker.entrypoints=docker"
- "traefik.http.routers.docker.tls=true"
- "traefik.http.routers.docker.tls.certresolver=mytraefik-resolver"
networks:
web:
external: true
volumes:
nexus_data:
driver: local
driver_opts:
type: nfs
o: addr=nas.local,vers=4,hard,intr,timeo=180,bg,tcp,rw
device: ":/mnt/nas01/docker/nexus_data"