Migrate to quadlets

This commit is contained in:
2026-07-09 11:46:56 +03:00
parent 1384f4375a
commit 6078cc2f35
15 changed files with 300 additions and 207 deletions

View File

@@ -0,0 +1,28 @@
[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