32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
---
|
|
- name: Create Elasticsearch instance for mastodon
|
|
containers.podman.podman_container:
|
|
name: elasticsearch
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.29
|
|
network:
|
|
- "{{ mastodon_networks['mastodon_internal']['name'] }}"
|
|
- "{{ mastodon_networks['mastodon_external']['name'] }}"
|
|
volumes:
|
|
- "/home/apps/mastodon/elasticsearch:/usr/share/elasticsearch/data:Z"
|
|
env:
|
|
ES_JAVA_OPTS: "-Xms512m -Xmx512m -Des.enforce.bootstrap.checks=true"
|
|
xpack.license.self_generated.type: "basic"
|
|
xpack.security.enabled: "false"
|
|
xpack.watcher.enabled: "false"
|
|
xpack.graph.enabled: "false"
|
|
xpack.ml.enabled: "false"
|
|
bootstrap.memory_lock: "true"
|
|
cluster.name: "es-mastodon"
|
|
discovery.type: "single-node"
|
|
thread_pool.write.queue_size: "1000"
|
|
# generate_systemd:
|
|
# new: true
|
|
# restart_policy: "always"
|
|
# path: "~/.config/systemd/user/"
|
|
# force: true
|
|
restart_policy: "always"
|
|
healthcheck: "curl --silent --fail localhost:9200/_cluster/health || exit 1"
|
|
ulimit:
|
|
- "nofile=65536:65536"
|
|
- "memlock=-1:-1"
|