[Unit] Description=Mastodon Elasticsearch [Container] ContainerName=elasticsearch Image=docker.elastic.co/elasticsearch/elasticsearch:7.17.29 Network=mastodon_internal.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