-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
110 lines (100 loc) · 4.63 KB
/
docker-compose.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: '3.4'
networks:
default:
name: web_net
volumes:
traefik-acme:
name: traefik-acme
nexus-data:
name: nexus-data
services:
traefik:
image: traefik:v2.4.8
container_name: treafik
command:
- "--log.level=INFO"
- "--log.filepath=/log-file.log"
- "--log.format=json"
- "--api=true"
- "--ping=true"
- "--accesslog=true"
- "--accesslog.bufferingsize=100"
- "--api.insecure=true"
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=web_net"
- "--entrypoints.http.address=:80"
- "--entrypoints.https.address=:443"
- "--certificatesresolvers.mycert.acme.email=amirbahador.pv@gmail.com"
- "--certificatesresolvers.mycert.acme.storage=/acme/acme.json"
- "--certificatesresolvers.mycert.acme.tlschallenge=true"
- "--providers.file.filename=/traefik/config.yml"
ports:
- 80:80
- 443:443
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- traefik-acme:/acme
- ./traefik:/traefik
networks:
- default
labels:
- "traefik.enable=true"
- "traefik.docker.network=web_net"
- "traefik.http.routers.traefik.entrypoints=http"
- "traefik.http.routers.traefik.rule=Host(`traefik.devopshobbieslearning.com`)"
- "traefik.http.routers.traefik.middlewares=https-redirect"
- "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.web-auth.basicauth.users=user:$$apr1$$QpkypDvQ$$FjJgBGyX/By8agkOCUvDo."
- "traefik.http.routers.traefik-secure.middlewares=web-auth"
- "traefik.http.routers.traefik-secure.entrypoints=https"
- "traefik.http.routers.traefik-secure.rule=Host(`traefik.devopshobbieslearning.com`)"
- "traefik.http.routers.traefik-secure.tls=true"
- "traefik.http.routers.traefik-secure.tls.options=default"
- "traefik.http.routers.traefik-secure.tls.certresolver=mycert"
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
nexus:
image: sonatype/nexus3:3.34.1
container_name: nexus
restart: always
volumes:
- "nexus-data:/sonatype-work"
networks:
- default
labels:
- "traefik.enable=true"
- "traefik.docker.network=web_net"
- "traefik.http.routers.repo.entrypoints=http"
- "traefik.http.routers.repo.rule=Host(`registry.devopshobbieslearning.com`)"
- "traefik.http.routers.repo.service=repo-secure"
- "traefik.http.routers.repo.middlewares=https-redirect"
- "traefik.http.routers.repo-secure.entrypoints=https"
- "traefik.http.routers.repo-secure.rule=Host(`registry.devopshobbieslearning.com`)"
- "traefik.http.routers.repo-secure.tls=true"
- "traefik.http.routers.repo-secure.tls.options=default"
- "traefik.http.routers.repo-secure.tls.certresolver=mycert"
- "traefik.http.routers.repo-secure.service=repo-secure"
- "traefik.http.services.repo-secure.loadbalancer.server.port=8081"
- "traefik.http.routers.nexusdocker.entrypoints=http"
- "traefik.http.routers.nexusdocker.rule=Host(`docker.devopshobbieslearning.com`)"
- "traefik.http.routers.nexusdocker.middlewares=https-redirect"
- "traefik.http.routers.nexusdocker-secure.entrypoints=https"
- "traefik.http.routers.nexusdocker.service=nexusdocker-secure"
- "traefik.http.routers.nexusdocker-secure.rule=Host(`docker.devopshobbieslearning.com`)"
- "traefik.http.routers.nexusdocker-secure.tls=true"
- "traefik.http.routers.nexusdocker-secure.tls.options=default"
- "traefik.http.routers.nexusdocker-secure.tls.certresolver=mycert"
- "traefik.http.routers.nexusdocker-secure.service=nexusdocker-secure"
- "traefik.http.services.nexusdocker-secure.loadbalancer.server.port=8085"
- "traefik.http.routers.nexusmirror.entrypoints=http"
- "traefik.http.routers.nexusmirror.rule=Host(`nexus.devopshobbieslearning.com`)"
- "traefik.http.routers.nexusmirror.middlewares=https-redirect"
- "traefik.http.routers.nexusmirror.service=nexusmirror-secure"
- "traefik.http.routers.nexusmirror-secure.entrypoints=https"
- "traefik.http.routers.nexusmirror-secure.rule=Host(`nexus.devopshobbieslearning.com`)"
- "traefik.http.routers.nexusmirror-secure.tls=true"
- "traefik.http.routers.nexusmirror-secure.tls.options=default"
- "traefik.http.routers.nexusmirror-secure.tls.certresolver=mycert"
- "traefik.http.routers.nexusmirror-secure.service=nexusmirror-secure"
- "traefik.http.services.nexusmirror-secure.loadbalancer.server.port=8084"