-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from s1061123/add_simple
Add docker-compose-simple.yml for minimum set
- Loading branch information
Showing
2 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# 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" | ||
|
||
networks: | ||
default: | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: 10.61.122.0/24 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters