]> Git — Sourcephile - gargantext.git/blob - devops/docker/docker-compose.yaml
Update CI and docker image
[gargantext.git] / devops / docker / docker-compose.yaml
1 version: '3'
2
3 services:
4 #postgres11:
5 # #image: 'postgres:latest'
6 # image: 'postgres:11'
7 # network_mode: host
8 # #command: ["postgres", "-c", "log_statement=all"]
9 # #ports:
10 # #- 5432:5432
11 # environment:
12 # POSTGRES_USER: gargantua
13 # POSTGRES_PASSWORD: C8kdcUrAQy66U
14 # POSTGRES_DB: gargandbV5
15 # volumes:
16 # - garg-pgdata:/var/lib/postgresql/data
17 # - ../:/gargantext
18 # - ../dbs:/dbs
19 # - ../postgres/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
20
21 postgres:
22 #image: 'postgres:latest'
23 image: 'postgres:14'
24 shm_size: 1g # https://stackoverflow.com/a/56754077
25 network_mode: host
26 #command: ["postgres", "-c", "log_statement=all"]
27 #ports:
28 # - 5432:5432
29 environment:
30 POSTGRES_USER: gargantua
31 POSTGRES_PASSWORD: C8kdcUrAQy66U
32 POSTGRES_DB: gargandbV5
33 volumes:
34 - garg-pgdata14:/var/lib/postgresql/data
35 - ../:/gargantext
36 - ../dbs:/dbs
37 - ../postgres/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
38
39 pgadmin:
40 image: 'dpage/pgadmin4'
41 ports:
42 - 8081:80
43 environment:
44 PGADMIN_DEFAULT_EMAIL: admin@localhost.lan
45 PGADMIN_DEFAULT_PASSWORD: admin
46
47 depends_on:
48 - postgres
49 links:
50 - postgres
51 volumes:
52 - pgadmin:/var/lib/pgadmin
53
54 corenlp:
55 image: 'cgenie/corenlp-garg'
56 ports:
57 - 9000:9000
58
59 johnsnownlp:
60 image: 'johnsnowlabs/nlp-server:latest'
61 volumes:
62 - js-cache:/home/johnsnowlabs/cache_pretrained
63 ports:
64 - 5000:5000
65
66 volumes:
67 #garg-pgdata:
68 garg-pgdata14:
69 js-cache:
70 pgadmin: