forked from cambridge-collection/cudl-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
28 lines (27 loc) · 1009 Bytes
/
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
version: "3"
services:
tomcat:
image: tomcat:9.0.30-jdk11-openjdk
volumes:
- ./target/FoundationsViewer.war:/usr/local/tomcat/webapps/ROOT.war
- ./docker/tomcat-context.xml:/usr/local/tomcat/conf/Catalina/localhost/ROOT.xml
- ${CUDL_VIEWER_CONFIG:-./docker/cudl-global.properties}:/etc/cudl-viewer/cudl-global.properties
- ${CUDL_VIEWER_DATA:-../dl-data-samples/processed-data/cudl-data/}:/srv/cudl-viewer/cudl-data/
- ${CUDL_VIEWER_CONTENT:-../dl-data-samples/processed-data/cudl-viewer-content/}:/srv/cudl-viewer/cudl-viewer-content/
ports:
- "8888:8080"
depends_on:
- cudl-db
cudl-db:
build:
context: .
dockerfile: docker/db/Dockerfile
args:
DBPATH: ${DBPATH:-./docker/db/dl-data-samples/processed-data/database-snapshots}
restart: always
environment:
POSTGRES_USER: cudl
POSTGRES_DB: cudl
POSTGRES_PASSWORD: ${TEST_DB_PASSWORD:-password}
ports:
- ${CUDL_DB_HOST_PORT:-0}:5432