-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.71 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
services:
traefik:
image: traefik:v2.10
container_name: traefik
restart: always
command:
- "--providers.docker=true"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesResolvers.local.acme.httpChallenge=true"
- "--certificatesResolvers.local.acme.httpChallenge.entryPoint=web"
- "--certificatesResolvers.local.acme.storage=/letsencrypt/acme.json"
- "--api.dashboard=true"
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "./traefik/traefik.yml:/traefik/traefik.yml"
- "./traefik/acme.json:/letsencrypt/acme.json"
- "./data/traefik:/traefik/data"
networks:
- web
jenkins:
image: jenkins/jenkins:lts
container_name: jenkins
restart: always
environment:
- JENKINS_OPTS=--prefix=/jenkins
volumes:
- "./data/jenkins:/var/jenkins_home"
labels:
- "traefik.enable=true"
- "traefik.http.routers.jenkins.rule=PathPrefix(`/jenkins`)"
- "traefik.http.routers.jenkins.entrypoints=web"
- "traefik.http.services.jenkins.loadbalancer.server.port=8080"
networks:
- web
prometheus:
image: prom/prometheus
container_name: prometheus
restart: always
volumes:
- "./data/prometheus:/prometheus"
labels:
- "traefik.enable=true"
- "traefik.http.routers.prometheus.rule=PathPrefix(`/prometheus`)"
- "traefik.http.routers.prometheus.entrypoints=web"
- "traefik.http.services.prometheus.loadbalancer.server.port=9090"
networks:
- web
networks:
web:
driver: bridge