-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
48 lines (46 loc) · 1.17 KB
/
docker-compose.yaml
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
version: "2.2"
services:
frontend:
# uncomment for local dev
# build: ./frontend
restart: always
image: gitlab.zbmed.de:5050/km/nfdi4health/annotation-workbench/frontend:${VERSION}
environment:
- API_PASS=http://backend:5000
ports:
- ${PORT}:80
links:
- "backend:backend"
depends_on:
- backend
backend:
# uncomment for local dev
# build: ./backend
restart: always
image: gitlab.zbmed.de:5050/km/nfdi4health/annotation-workbench/backend:${VERSION}
expose:
- "5000"
environment:
- PYTHONPATH=/workspace
- API_SEMLOOKP=https://semanticlookup.zbmed.de/ols/api/
- API_OLS=https://www.ebi.ac.uk/ols/api/
- DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres
- INSTRUMENTS=/var/lib/mda/instruments
depends_on:
- db
volumes:
- instruments:/var/lib/mda/instruments
db:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres_db
ports:
- ${PORT_DB}:${PORT_DB}
volumes:
- db:/var/lib/postgresql/data
volumes:
db:
instruments: