Skip to content

Commit 23c6a59

Browse files
authored
Update Elasticsearch settings and add healthcheck
1 parent 1f60865 commit 23c6a59

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

docker-compose.production.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,17 @@ services:
9090
environment:
9191
- discovery.type=single-node
9292
- xpack.security.enabled=false
93-
# Ajustado para KVM
93+
# Ajustado para KVM 2 (1GB Heap é seguro)
94+
- ES_JAVA_OPTS=-Xms1g -Xmx1g
95+
volumes:
96+
- prostaff_es_data:/usr/share/elasticsearch/data
97+
healthcheck:
98+
test: ["CMD-SHELL", "curl -s http://localhost:9200 >/dev/null || exit 1"]
99+
interval: 30s
100+
timeout: 10s
101+
retries: 5
102+
103+
volumes:
104+
prostaff_pg_data:
105+
prostaff_redis_data:
106+
prostaff_es_data:

0 commit comments

Comments
 (0)