-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
44 lines (43 loc) · 1.9 KB
/
compose.yml
File metadata and controls
44 lines (43 loc) · 1.9 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
services:
fair-eva:
build:
context: .
dockerfile: docker/Dockerfile.fair-eva
args:
FAIR_EVA_REF: ${FAIR_EVA_REF:-main}
# Plugins installed into the backend image (pip specs / git+https).
FAIR_EVA_PLUGINS: "${FAIR_EVA_PLUGINS:-git+https://github.com/IFCA-Advanced-Computing/fair-eva-plugin-oai-pmh@main git+https://github.com/ferag/fair-eva-plugin-gbif.git@main}"
# Extra runtime dependencies needed by plugins without reinstalling fair_eva.
FAIR_EVA_PLUGIN_EXTRA_DEPS: "${FAIR_EVA_PLUGIN_EXTRA_DEPS:-python-dwca-reader geopandas idutils numpy pandas pycountry requests shapely}"
restart: unless-stopped
ports:
- "9090:9090"
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:9090/v1.0/openapi.json >/dev/null || exit 1"]
interval: 20s
timeout: 5s
retries: 15
start_period: 60s
fair-eva-web:
build:
context: .
dockerfile: docker/Dockerfile.web
args:
WEB_REPO: ${WEB_REPO:-https://github.com/IFCA-Advanced-Computing/fair_eva_web_client.git}
WEB_REF: ${WEB_REF:-main}
restart: unless-stopped
depends_on:
fair-eva:
condition: service_healthy
environment:
# fair_eva_web_client uses FAIR_EVA_API_URL/FAIR_EVA_API_PORT to reach the backend.
# IMPORTANT: inside a container, "localhost" points to itself, not to other services.
FAIR_EVA_API_URL: ${FAIR_EVA_API_URL:-http://fair-eva}
FAIR_EVA_API_PORT: ${FAIR_EVA_API_PORT:-9090}
FAIR_EVA_API_EVAL_PATH: ${FAIR_EVA_API_EVAL_PATH:-/v1.0/rda/rda_all}
# Use a Docker-specific config.ini so api_url is not overwritten to http://localhost
FAIR_EVA_CONFIG_FILE: ${FAIR_EVA_CONFIG_FILE:-/app/config.docker.ini}
FAIR_EVA_API_PLUGINS_PATH: ${FAIR_EVA_API_PLUGINS_PATH:-/v1.0/endpoints}
FAIR_EVA_PLUGINS_FILE: ${FAIR_EVA_PLUGINS_FILE:-}
ports:
- "8000:8000"