Skip to content

Commit db20fe8

Browse files
2 parents af8437b + 23c6a59 commit db20fe8

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
@@ -85,4 +85,17 @@ services:
8585
environment:
8686
- discovery.type=single-node
8787
- xpack.security.enabled=false
88-
# Ajustado para KVM
88+
# Ajustado para KVM 2 (1GB Heap é seguro)
89+
- ES_JAVA_OPTS=-Xms1g -Xmx1g
90+
volumes:
91+
- prostaff_es_data:/usr/share/elasticsearch/data
92+
healthcheck:
93+
test: ["CMD-SHELL", "curl -s http://localhost:9200 >/dev/null || exit 1"]
94+
interval: 30s
95+
timeout: 10s
96+
retries: 5
97+
98+
volumes:
99+
prostaff_pg_data:
100+
prostaff_redis_data:
101+
prostaff_es_data:

0 commit comments

Comments
 (0)