Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
91 lines (84 loc) · 2.26 KB
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
91 lines (84 loc) · 2.26 KB
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
services:
database:
image: postgres:17.2-alpine3.20
restart: unless-stopped
env_file:
- .env
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD", "pg_isready", "-U", "${POSTGRES_USER}", "-d", "${POSTGRES_DB}" ]
interval: 10s
timeout: 30s
retries: 5
start_period: 30s
backend:
build:
context: ./backend
dockerfile: docker/Dockerfile
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8000/health" ]
interval: 30s
timeout: 30s
retries: 5
start_period: 30s
depends_on:
database:
condition: service_healthy
env_file:
- .env
volumes:
- ./backend:/app
ports:
- "8000:8000"
data_loader:
build:
context: ./data_loader
dockerfile: Dockerfile
restart: "no"
env_file:
- .env
depends_on:
database:
condition: service_healthy
backend:
condition: service_healthy
volumes:
# Concept Related Information
- ./data/rxnorm/CONCEPT.csv:/data/rxnorm/CONCEPT.csv:ro
- ./data/rxnorm/CONCEPT_ANCESTOR.csv:/data/rxnorm/CONCEPT_ANCESTOR.csv:ro
- ./data/rxnorm/RELATIONSHIP.csv:/data/rxnorm/RELATIONSHIP.csv:ro
- ./data/rxnorm/CONCEPT_RELATIONSHIP.csv:/data/rxnorm/CONCEPT_RELATIONSHIP.csv:ro
# Feasibility Information
- ./data/achilles_results-04-02.csv:/data/achilles_results-04-02.csv:ro
- ./data/data_source-04-02.csv:/data/data_source-04-02.csv:ro
- ./data/countries.csv:/data/countries.csv:ro
frontend:
build:
context: ./frontend
dockerfile: docker/Dockerfile
args:
- BUILD_NPM_TOKEN=${BUILD_NPM_TOKEN}
- DEV_MODE=True
- STANDALONE_MODE=${SINGLE_COMMUNITY_MODE}
- KEYCLOAK_URL=${KEYCLOAK_PROXY_URL}
- COMMUNITY_KEY=${COMMUNITY_KEY}
- API_URL=${PUBLIC_API_URL}
restart: unless-stopped
env_file:
- .env
depends_on:
backend:
condition: service_healthy
data_loader:
condition: service_completed_successfully
volumes:
- ./frontend:/frontend
- /frontend/node_modules
ports:
- "3000:3000"
volumes:
postgres_data: