mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
79 lines
2.0 KiB
YAML
79 lines
2.0 KiB
YAML
#
|
|
# The contents of this file are subject to the license and copyright
|
|
# detailed in the LICENSE and NOTICE files at the root of the source
|
|
# tree and available online at
|
|
#
|
|
# http://www.dspace.org/license/
|
|
#
|
|
|
|
# Docker Compose for running the DSpace backend for testing/development
|
|
# This is based heavily on the docker-compose.yml that is available in the DSpace/DSpace
|
|
# (Backend) at:
|
|
# https://github.com/DSpace/DSpace/blob/main/docker-compose.yml
|
|
version: '3.7'
|
|
networks:
|
|
dspacenet:
|
|
services:
|
|
dspace:
|
|
container_name: dspace
|
|
image: dspace/dspace:dspace-7_x-test
|
|
depends_on:
|
|
- dspacedb
|
|
networks:
|
|
dspacenet:
|
|
ports:
|
|
- published: 8080
|
|
target: 8080
|
|
stdin_open: true
|
|
tty: true
|
|
volumes:
|
|
- assetstore:/dspace/assetstore
|
|
- "./local.cfg:/dspace/config/local.cfg"
|
|
# Ensure that the database is ready BEFORE starting tomcat
|
|
# 1. While a TCP connection to dspacedb port 5432 is not available, continue to sleep
|
|
# 2. Then, run database migration to init database tables
|
|
# 3. Finally, start Tomcat
|
|
entrypoint:
|
|
- /bin/bash
|
|
- '-c'
|
|
- |
|
|
while (!</dev/tcp/dspacedb/5432) > /dev/null 2>&1; do sleep 1; done;
|
|
/dspace/bin/dspace database migrate
|
|
catalina.sh run
|
|
dspacedb:
|
|
container_name: dspacedb
|
|
environment:
|
|
PGDATA: /pgdata
|
|
image: dspace/dspace-postgres-pgcrypto
|
|
networks:
|
|
dspacenet:
|
|
ports:
|
|
- published: 5432
|
|
target: 5432
|
|
stdin_open: true
|
|
tty: true
|
|
volumes:
|
|
- pgdata:/pgdata
|
|
dspacesolr:
|
|
container_name: dspacesolr
|
|
image: dspace/dspace-solr
|
|
networks:
|
|
dspacenet:
|
|
ports:
|
|
- published: 8983
|
|
target: 8983
|
|
stdin_open: true
|
|
tty: true
|
|
volumes:
|
|
- solr_authority:/opt/solr/server/solr/authority/data
|
|
- solr_oai:/opt/solr/server/solr/oai/data
|
|
- solr_search:/opt/solr/server/solr/search/data
|
|
- solr_statistics:/opt/solr/server/solr/statistics/data
|
|
volumes:
|
|
assetstore:
|
|
pgdata:
|
|
solr_authority:
|
|
solr_oai:
|
|
solr_search:
|
|
solr_statistics:
|