[FIX] NodeWrites parsing first fix
[gargantext.git] / devops / docker / docker-compose.yaml
index af9567908db96bb3c49760b8ce28bebb80ffe087..58f6ff97cb05d6f6b226baef9a33e879d533be65 100644 (file)
@@ -1,24 +1,67 @@
 version: '3'
 
 services:
+  #postgres11:
+  #  #image: 'postgres:latest'
+  #  image: 'postgres:11'
+  #  network_mode: host
+  #  #command: ["postgres", "-c", "log_statement=all"]
+  #  #ports:
+  #    #- 5432:5432
+  #  environment:
+  #    POSTGRES_USER: gargantua
+  #    POSTGRES_PASSWORD: C8kdcUrAQy66U
+  #    POSTGRES_DB: gargandbV5
+  #  volumes:
+  #    - garg-pgdata:/var/lib/postgresql/data
+  #    - ../:/gargantext
+  #    - ../dbs:/dbs
+  #    - ../postgres/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
+
   postgres:
-    image: 'postgres:latest'
-    ports:
-      - 5432:5432
+    #image: 'postgres:latest'
+    image: 'postgres:14'
+    shm_size: 1g  # https://stackoverflow.com/a/56754077
+    network_mode: host
+    #command: ["postgres", "-c", "log_statement=all"]
+    #ports:
+    #  - 5432:5432
     environment:
       POSTGRES_USER: gargantua
       POSTGRES_PASSWORD: C8kdcUrAQy66U
       POSTGRES_DB: gargandbV5
     volumes:
-      - garg-pgdata:/var/lib/postgresql/data
+      - garg-pgdata14:/var/lib/postgresql/data
       - ../:/gargantext
       - ../dbs:/dbs
       - ../postgres/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
 
+  pgadmin:
+    image: 'dpage/pgadmin4'
+    ports:
+      - 8081:80
+    environment:
+      PGADMIN_DEFAULT_EMAIL: admin@localhost.lan
+      PGADMIN_DEFAULT_PASSWORD: admin
+
+    depends_on:
+      - postgres
+    links:
+      - postgres
+
   corenlp:
     image: 'cgenie/corenlp-garg'
     ports:
       - 9000:9000
 
+  johnsnownlp:
+    image: 'johnsnowlabs/nlp-server:latest'
+    volumes:
+      - js-cache:/home/johnsnowlabs/cache_pretrained
+    ports:
+      - 5000:5000
+
 volumes:
-  garg-pgdata:
+  #garg-pgdata:
+  garg-pgdata14:
+  js-cache: