-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
102 lines (97 loc) · 2.65 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
# vim: tabstop=2 shiftwidth=2 expandtab
version: '2'
# docker-compose file to launch jenkins_master/ELK stack/traefic instead of VM.
services:
proxy:
image: traefik
command: --web --docker --docker.domain=${PROXY_DOMAIN} --docker.exposedbydefault=false --logLevel=${PROXY_LOG_LEVEL}
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /dev/null:/traefik.toml
jenkins_master:
build:
context: ./dockerfiles
dockerfile: centos7_base
container_name: jenkins_master
entrypoint: /sbin/init
privileged: true
depends_on:
- proxy
security_opt:
- seccomp:unconfined
volumes:
- /run
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- ./:/opt/toad
- ./container_data/jenkins/data:/var/lib/jenkins/userContent
- ./container_data/jenkins/log:/var/log/jenkins
- ./container_data/jenkins/jobs:/etc/jenkins_jobs
labels:
- "traefik.enable=true"
- "traefik.backend=jenkins_master"
- "traefik.frontend.rule=Host:jenkins.${PROXY_DOMAIN}"
- "traefik.port=8080"
expose:
- "8080"
logstash:
build:
context: ./dockerfiles
dockerfile: centos7_base
container_name: logstash
entrypoint: /sbin/init
privileged: true
security_opt:
- seccomp:unconfined
volumes:
- /run
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- ./:/opt/toad
- ./container_data/logstash/config:/etc/logstash/conf.d
- ./container_data/logstash/log:/var/log/logstash/logstash.log
expose:
- "5044"
elasticsearch:
build:
context: ./dockerfiles
dockerfile: centos7_base
container_name: elasticsearch
entrypoint: /sbin/init
privileged: true
security_opt:
- seccomp:unconfined
volumes:
- /run
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- ./:/opt/toad
- ./container_data/elasticsearch/log:/var/log/elasticsearch
- ./container_data/elasticsearch/data:/var/lib/elasticsearch
- ./container_data/elasticsearch/config:/etc/elasticsearch
expose:
- "9200"
kibana:
build:
context: ./dockerfiles
dockerfile: centos7_base
container_name: kibana
entrypoint: /sbin/init
privileged: true
depends_on:
- proxy
security_opt:
- seccomp:unconfined
volumes:
- /run
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- ./:/opt/toad
- ./container_data/kibana/config:/opt/kibana/config
labels:
- "traefik.enable=true"
- "traefik.backend=kibana"
- "traefik.frontend.rule=Host:kibana.${PROXY_DOMAIN}"
- "traefik.port=5601"
expose:
- "5601"