Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose.yml does not match requirements of the latest Manifold #67

Open
sanel opened this issue May 3, 2024 · 0 comments
Open

Comments

@sanel
Copy link

sanel commented May 3, 2024

Hi guys,

The current docker-compose.yml does not match requirements of the latest Manifold and I've discovered that over a few days of (unfortunately) painful debugging :D Also, I'm sending you a diff instead of PR, in case you need to review things further.

Necessary changes:

  • Postgres upgraded to 12.18 (latest of 12.x branch), because migrations would fail with Postgres 11, reporting syntax error.

  • ElasticSearch upgraded to 7.5.1, because elasticsearch gem, used by Manifold, will complain that it tried to connect to incompatible version. I also increase default memory use to 1Gb and set ulimits, because ElasticSearch will not start without those set. Memory increase is not mandatory, but recommended. Also, ElasticSearch 7.5.x won't start if not set in single-node mode.

Also, it needs to be documented that ElasticSearch needs to have the following set on the host where docker-compose is run, not container:

sysctl -w vm.max_map_count=262144

If you want, I can prepare PR for this. This should also address #13 I think.

--- docker-compose.yml.old	2024-05-03 13:59:52.465778644 +0200
+++ docker-compose.yml.new	2024-05-03 14:00:34.161155071 +0200
@@ -1,7 +1,7 @@
 version: "3"
 services:
   postgres:
-    image: postgres:11-alpine
+    image: postgres:12.18-alpine
     volumes:
       - ./data/postgres:/var/lib/postgresql/data
     environment:
@@ -10,10 +10,15 @@
     networks:
       - network1
   elasticsearch:
-    image: docker.elastic.co/elasticsearch/elasticsearch:5.6.7
+    image: docker.elastic.co/elasticsearch/elasticsearch:7.5.1
     environment:
-      ES_JAVA_OPTS: "-Xms512m -Xmx512m"
+      ES_JAVA_OPTS: "-Xms1g -Xmx1g"
+      discovery.type: 'single-node'
       xpack.security.enabled: 'false'
+    ulimits:
+      nofile:
+        soft: 65536
+        hard: 65536
     networks:
       - network1
   redis:
@@ -90,4 +95,4 @@
 #  manifold_sockets:
 
 networks:
-  network1:
\ No newline at end of file
+  network1:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant