forked from netarchivesuite/solrwayback
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (42 loc) · 1.41 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:
# -----------------------------------------------------------
# SolrWayback
# -----------------------------------------------------------
solrwayback:
build:
context: .
args:
- "http_proxy=${HTTP_PROXY}"
- "https_proxy=${HTTPS_PROXY}"
- "MAVEN_OPTS=${MAVEN_OPTS}"
ports:
- "18080:8080"
environment:
# Allow Solr and WARC server locations to be overidden:
- "SOLR_URL=${SOLR_URL:-http://solr:8983/solr/discovery}"
- "WARC_SERVER_PREFIX=${WARC_SERVER_PREFIX:-http://warc-server/}"
# Setup base URL assuming we access via the 18080 local host port defined above:
- "BASE_URL=${BASE_URL:-http://localhost:18080/act/solrwayback/}"
# Example of using an alternative deployment prefix. Note this means changing BASE_URL to match.
#- "ALT_WAR_NAME=prefix#solrwayback"
# Solr instance for running tests against
solr:
image: ukwa/webarchive-discovery-solr:master
ports:
- "18983:8983"
# Hook to populate the image with test data:
populate:
image: ukwa/webarchive-discovery
command: "/docker/populate.sh"
environment:
- "SOLR_URL=${SOLR_URL:-http://solr:8983/solr/discovery}"
volumes:
- ./docker:/docker
# HTTP server that does range requests:
warc-server:
image: nginx
ports:
- "180:80"
volumes:
- ./docker/test-warcs:/usr/share/nginx/html