-
Notifications
You must be signed in to change notification settings - Fork 131
/
docker-compose.yml
48 lines (44 loc) · 1.17 KB
/
docker-compose.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
version: '3.2'
services:
vivo-solr:
container_name: vivo-solr
image: vivoweb/vivo-solr:latest
environment:
- RESET_CORE=${SOLR_RESET_CORE}
- VERBOSE=${SOLR_VERBOSE}
ports:
- ${SOLR_HOST_PORT}:${SOLR_CONTAINER_PORT}
volumes:
- ${SOLR_CORES}:/opt/solr/server/solr/mycores
networks:
- vivoweb
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8983/solr/vivocore/admin/ping || exit 1"]
interval: 15s
timeout: 5s
retries: 3
vivo:
container_name: vivo
image: vivoweb/vivo:latest
hostname: vivo
build:
context: ./
dockerfile: Dockerfile
args:
- TDB_FILE_MODE=${VIVO_TDB_FILE_MODE}
- VIVO_HOME=${VIVO_CONTAINER_VIVO_HOME}
- SOLR_URL=http://vivo-solr:${SOLR_CONTAINER_PORT}/solr/vivocore
environment:
- RESET_HOME=${VIVO_RESET_HOME}
- VERBOSE=${VIVO_VERBOSE}
ports:
- ${VIVO_HOST_PORT}:${VIVO_CONTAINER_PORT}
volumes:
- ${VIVO_HOST_VIVO_HOME}:${VIVO_CONTAINER_VIVO_HOME}
networks:
- vivoweb
depends_on:
vivo-solr:
condition: service_healthy
networks:
vivoweb: