-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-mac.yml
93 lines (85 loc) · 1.96 KB
/
docker-compose-mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3'
services:
database:
build:
context: .
dockerfile: sql/Dockerfile
volumes:
- postgres_data:/var/lib/postgresql/data/
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${LITSCAN_USER} -d ${LITSCAN_DB}'"]
interval: 5s
retries: 10
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
- LITSCAN_USER=${LITSCAN_USER}
- LITSCAN_PASSWORD=${LITSCAN_PASSWORD}
- LITSCAN_DB=${LITSCAN_DB}
restart: unless-stopped
ports:
- "8082:5432"
producer:
image: ghcr.io/rnacentral/litscan-producer:main
ports:
- "8080:8080"
environment:
ENVIRONMENT: "DOCKER"
LITSCAN_USER: ${LITSCAN_USER}
LITSCAN_PASSWORD: ${LITSCAN_PASSWORD}
LITSCAN_DB: ${LITSCAN_DB}
depends_on:
- database
restart: always
consumer:
image: ghcr.io/rnacentral/litscan-consumer:main
ports:
- "8081:8081"
environment:
ENVIRONMENT: "DOCKER"
LITSCAN_USER: ${LITSCAN_USER}
LITSCAN_PASSWORD: ${LITSCAN_PASSWORD}
LITSCAN_DB: ${LITSCAN_DB}
depends_on:
- database
restart: always
summarizer:
platform: linux/arm64/v8
build:
context: ./summarize
dockerfile: Dockerfile
env_file:
- .env
command: python summarize_articles_service.py
depends_on:
- database
restart: always
vizualiser:
platform: linux/arm64/v8
build:
context: ./visualise
dockerfile: Dockerfile
env_file:
- .env
command: python search_demo.py
depends_on:
- database
restart: always
ports:
- 7860:7860
evaluator:
platform: linux/arm64/v8
build:
context: ./evaluate
dockerfile: Dockerfile
env_file:
- .env
command: gunicorn --bind 0.0.0.0:5000 --timeout 600 manage:app
ports:
- 5000:5000
depends_on:
- database
restart: always
volumes:
postgres_data: