Migrate to quadlets
This commit is contained in:
28
roles/mastodon/templates/elasticsearch.container.j2
Normal file
28
roles/mastodon/templates/elasticsearch.container.j2
Normal 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
|
||||
Reference in New Issue
Block a user