-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
53 lines (51 loc) · 1.22 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
version: '3'
services:
traefik:
image: traefik:1.7-alpine
restart: always
ports:
- 80:80
- 443:443
networks:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik/traefik.toml:/traefik.toml
- ./traefik/acme.json:/acme.json
portainer:
image: portainer/portainer:1.20.2
restart: always
ports:
- "32768"
networks:
- web
- default
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./portainer/data:/data portainer/portainer
labels:
- "traefik.docker.network=web"
- "traefik.enable=true"
- "traefik.portainer.frontend.rule=Host:portainer.localhost"
- "traefik.portainer.port=9000"
- "traefik.portainer.protocol=http"
jenkins:
image: jenkins/jenkins:2.180-slim
restart: always
ports:
- "8080"
networks:
- web
- default
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.docker.network=web"
- "traefik.enable=true"
- "traefik.jenkins.frontend.rule=Host:jenkins.localhost"
- "traefik.jenkins.port=8080"
- "traefik.jenkins.protocol=http"
networks:
web:
external:
name: web