36 lines
844 B
YAML
36 lines
844 B
YAML
---
|
|
# docker-compose file for graylog
|
|
# DOCKER_HOST=dkhost03:2376 docker-compose up -d
|
|
# DOCKER_HOST=dkhost03:2376 docker stack deploy -c docker-compose-elasticsearch.yml services
|
|
|
|
version: '3'
|
|
services:
|
|
|
|
elasticsearch:
|
|
image: "elasticsearch:2"
|
|
# image: docker.elastic.co/elasticsearch/elasticsearch:5.4.1
|
|
command: "elasticsearch -Des.cluster.name='es.xai-corp.net'"
|
|
volumes:
|
|
- /opt/shared/graylog/data/elasticsearch:/usr/share/elasticsearch/data
|
|
ports:
|
|
# - "9350:9350"
|
|
# - "9300:9300"
|
|
- "9200:9200"
|
|
# - "10091:80"
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: any
|
|
delay: "1s"
|
|
max_attempts: 3
|
|
resources:
|
|
limits:
|
|
cpus: '0.5'
|
|
memory: 512M
|
|
|
|
networks:
|
|
default:
|
|
external:
|
|
name: prod-private
|