105 lines
2.5 KiB
YAML
105 lines
2.5 KiB
YAML
version: "3.7"
|
|
services:
|
|
hello:
|
|
build:
|
|
context: ./test.dockerapp/http-echo-confd/
|
|
dockerfile: Dockerfile
|
|
args:
|
|
httpEchoServerVersion: ${image-version}
|
|
alpineVersion: ${alpine-version}
|
|
container_name: hello
|
|
environment:
|
|
HTTPTEXT: ${response-text}
|
|
# etcdWait parameter
|
|
PLATFORM: ${etcdWait-platform}
|
|
MAX_RETRY: ${etcdWait-max-retry}
|
|
SLEEP_TIME: ${etcdWait-sleep-time}
|
|
ports:
|
|
- ${echo-port}:5678
|
|
|
|
etcd:
|
|
container_name: etcd
|
|
image: bitnami/etcd
|
|
environment:
|
|
- ALLOW_NONE_AUTHENTICATION=yes
|
|
# - ETCD_ADVERTISE_CLIENT_URLS=http://0.0.0.0:2379
|
|
restart: always
|
|
ports:
|
|
- ${etcd-port}:2379/tcp
|
|
|
|
elasticsearch:
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:${elk-version}
|
|
container_name: elasticsearch
|
|
environment:
|
|
- cluster.name=docker-cluster
|
|
- bootstrap.memory_lock=true
|
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
volumes:
|
|
- esdata1:/usr/share/elasticsearch/data
|
|
ports:
|
|
- ${es-port}:9200
|
|
networks:
|
|
- esnet
|
|
|
|
logstash:
|
|
image: docker.elastic.co/logstash/logstash:${elk-version}
|
|
container_name: logstash
|
|
environment:
|
|
XPACK_MONITORING_ELASTICSEARCH_URL: http://elasticsearch:9200
|
|
volumes:
|
|
- pipelines:/usr/share/logstash/pipeline/
|
|
ports:
|
|
- 5000:5000
|
|
depends_on:
|
|
- elasticsearch
|
|
networks:
|
|
- esnet
|
|
|
|
kibana:
|
|
image: docker.elastic.co/kibana/kibana:${elk-version}
|
|
container_name: kibana
|
|
environment:
|
|
SERVER_NAME: local.localhost.com
|
|
ELASTICSEARCH_HOSTS: http://elasticsearch
|
|
ports:
|
|
- ${kibana-port}:5601
|
|
depends_on:
|
|
- elasticsearch
|
|
networks:
|
|
- esnet
|
|
|
|
tomcat:
|
|
build:
|
|
context: ./test.dockerapp/tomcat/
|
|
dockerfile: Dockerfile
|
|
args:
|
|
tomcatVersion: ${tomcat-version}
|
|
container_name: tomcat
|
|
volumes:
|
|
- type: bind
|
|
source: /Users/antoine/Documents/docker/test.dockerapp/tomcat/webapps
|
|
target: /usr/local/tomcat/webapps
|
|
- type: bind
|
|
source: /Users/antoine/Documents/docker/test.dockerapp/tomcat/certificates
|
|
target: /certificates
|
|
ports:
|
|
- ${tomcat-port}:8080
|
|
|
|
|
|
volumes:
|
|
data-volume:
|
|
driver: local
|
|
esdata1:
|
|
driver: local
|
|
pipelines:
|
|
driver_opts:
|
|
type: none
|
|
device: $$PWD/test.dockerapp/logstash/pipelines/
|
|
o: bind
|
|
networks:
|
|
esnet:
|