Deploy mastodon v0.1
This commit is contained in:
31
roles/mastodon/tasks/elasticsearch.yml
Normal file
31
roles/mastodon/tasks/elasticsearch.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
- 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"
|
||||
Reference in New Issue
Block a user