Files
wtf/roles/mastodon/templates/elasticsearch.container.j2
2026-07-09 11:46:56 +03:00

29 lines
899 B
Django/Jinja

[Unit]
Description=Mastodon Elasticsearch
[Container]
ContainerName=elasticsearch
Image=docker.elastic.co/elasticsearch/elasticsearch:7.17.29
Network=mastodon_internal.network
Network=mastodon_external.network
Environment=ES_JAVA_OPTS=-Xms512m -Xmx512m -Des.enforce.bootstrap.checks=true
Environment=xpack.license.self_generated.type=basic
Environment=xpack.security.enabled=false
Environment=xpack.watcher.enabled=false
Environment=xpack.graph.enabled=false
Environment=xpack.ml.enabled=false
Environment=bootstrap.memory_lock=true
Environment=cluster.name=es-mastodon
Environment=discovery.type=single-node
Environment=thread_pool.write.queue_size=1000
Volume=/home/apps/mastodon/elasticsearch:/usr/share/elasticsearch/data:Z
HealthCmd=curl --silent --fail localhost:9200/_cluster/health
Ulimit=nofile=65536:65536
Ulimit=memlock=-1:-1
[Service]
Restart=always
[Install]
WantedBy=default.target