-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose-simple.yml
79 lines (75 loc) · 2.02 KB
/
docker-compose-simple.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
# vim: tabstop=2 shiftwidth=2 expandtab
version: '2'
# docker-compose file to launch jenkins_master/ELK stack instead of VM.
# This docker-compose file focus on minimum set for TOAD.
services:
jenkins_master:
build:
context: ./dockerfiles
dockerfile: centos7_base
container_name: jenkins_master
entrypoint: /sbin/init
privileged: true
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
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
security_opt:
- seccomp:unconfined
volumes:
- /run
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- ./:/opt/toad
- ./container_data/kibana/config:/opt/kibana/config
expose:
- "443"
- "5601"