mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 15:28:12 +02:00
- Added conditional '--pull' flag on retry in docker-compose build handler, tied to MODE_UPDATE - Added 'pull_policy: never' to multiple docker-compose service templates to prevent unwanted image pulls - Fixed minor formatting issues (e.g. Nextcloud volume spacing, WordPress desktop alignment) Reference: https://chatgpt.com/share/68b0207a-4d9c-800f-b76f-9515885e5183
71 lines
1.9 KiB
Django/Jinja
71 lines
1.9 KiB
Django/Jinja
{% include 'roles/docker-compose/templates/base.yml.j2' %}
|
|
elasticsearch:
|
|
build:
|
|
context: elasticsearch/
|
|
args:
|
|
ELK_VERSION: $ELK_VERSION
|
|
pull_policy: never
|
|
volumes:
|
|
- type: bind
|
|
source: ./elasticsearch/config/elasticsearch.yml
|
|
target: /usr/share/elasticsearch/config/elasticsearch.yml
|
|
read_only: true
|
|
- type: volume
|
|
source: elasticsearch
|
|
target: /usr/share/elasticsearch/data
|
|
ports:
|
|
- "9200:9200"
|
|
- "9300:9300"
|
|
environment:
|
|
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
|
|
ELASTIC_PASSWORD: changeme
|
|
# Use single node discovery in order to disable production mode and avoid bootstrap checks.
|
|
# see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
|
|
discovery.type: single-node
|
|
|
|
logstash:
|
|
build:
|
|
context: logstash/
|
|
args:
|
|
ELK_VERSION: $ELK_VERSION
|
|
pull_policy: never
|
|
volumes:
|
|
- type: bind
|
|
source: ./logstash/config/logstash.yml
|
|
target: /usr/share/logstash/config/logstash.yml
|
|
read_only: true
|
|
- type: bind
|
|
source: ./logstash/pipeline
|
|
target: /usr/share/logstash/pipeline
|
|
read_only: true
|
|
ports:
|
|
- "5044:5044"
|
|
- "5000:5000/tcp"
|
|
- "5000:5000/udp"
|
|
- "9600:9600"
|
|
environment:
|
|
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
|
|
depends_on:
|
|
- elasticsearch
|
|
|
|
kibana:
|
|
build:
|
|
context: kibana/
|
|
args:
|
|
ELK_VERSION: $ELK_VERSION
|
|
pull_policy: never
|
|
volumes:
|
|
- type: bind
|
|
source: ./kibana/config/kibana.yml
|
|
target: /usr/share/kibana/config/kibana.yml
|
|
read_only: true
|
|
ports:
|
|
- "127.0.0.1:{{ ports.localhost.http[application_id] }}:5601"
|
|
depends_on:
|
|
- elasticsearch
|
|
|
|
{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
|
|
elasticsearch:
|
|
|
|
{% include 'roles/docker-compose/templates/networks.yml.j2' %}
|