-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (49 loc) · 1.31 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
version: '3.8'
services:
jenkins:
build: .
hostname: jenkins
container_name: jenkins
image: kostua/jenkins_casc_lts:latest
labels:
# Enables redirect to https
- traefik.http.routers.jenkins.entrypoints=web
- traefik.http.routers.jenkins.middlewares=redirect-to-https
# Enables TLS with a self-signed .test certificate
- traefik.http.routers.jenkins.entrypoints=web-secure
- traefik.http.routers.jenkins.tls=true
# Use a custom host name
- traefik.http.routers.jenkins.rule=Host(`jenkins.test`)
environment:
DOCKER_HOST: tcp://socat:2375
networks:
- jenkins
- vault
- proxy
ports:
- 8080
- 50000:50000
volumes:
- jenkins-data:/var/jenkins_home
- jenkins-docker-certs:/certs/client:ro
- $HOME=/home
socat:
image: alpine/socat
command: tcp-listen:2375,fork,reuseaddr unix-connect:/var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- jenkins-docker-certs:/certs/client:ro
networks:
- jenkins
ports:
- "127.0.0.1:2375:2375"
volumes:
jenkins-data:
jenkins-docker-certs:
networks:
jenkins:
vault:
external:
name: vault_vault
proxy:
external: true