[Clean]
[gargantext.git] / devops / docker / docker-compose.yaml
index 0ef9609d4dee3601d59e297fa6e7e6cdde1691a2..62e5ae33f255e629eb9c67c7669b632f58ece5af 100644 (file)
@@ -3,6 +3,7 @@ version: '3'
 services:
   postgres:
     image: 'postgres:latest'
+    network_mode: host
     ports:
       - 5432:5432
     environment:
@@ -10,9 +11,26 @@ services:
       POSTGRES_PASSWORD: C8kdcUrAQy66U
       POSTGRES_DB: gargandbV5
     volumes:
-      - pgdata:/var/lib/postgresql/data
+      - garg-pgdata:/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
+      PGADMIN_DEFAULT_PASSWORD: admin
+
+    depends_on:
+      - postgres
+
+  corenlp:
+    image: 'cgenie/corenlp-garg'
+    ports:
+      - 9000:9000
 
 volumes:
-  pgdata:
+  garg-pgdata: