mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
39 lines
1.6 KiB
YAML
39 lines
1.6 KiB
YAML
version: "3.7"
|
|
networks:
|
|
# Default to using network named 'dspacenet' from docker-compose.yml.
|
|
# Its full name will be prepended with the project name (e.g. "-p d7" means it will be named "d7_dspacenet")
|
|
default:
|
|
name: ${COMPOSE_PROJECT_NAME}_dspacenet
|
|
external: true
|
|
services:
|
|
dspace-cli:
|
|
image: "${DOCKER_OWNER:-dspace}/dspace-cli:${DSPACE_VER:-latest}"
|
|
container_name: dspace-cli
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.cli
|
|
environment:
|
|
# Below syntax may look odd, but it is how to override dspace.cfg settings via env variables.
|
|
# See https://github.com/DSpace/DSpace/blob/main/dspace/config/config-definition.xml
|
|
# __P__ => "." (e.g. dspace__P__dir => dspace.dir)
|
|
# __D__ => "-" (e.g. google__D__metadata => google-metadata)
|
|
# dspace.dir: Must match with Dockerfile's DSPACE_INSTALL directory.
|
|
dspace__P__dir: /dspace
|
|
# db.url: Ensure we are using the 'dspacedb' image for our database
|
|
db__P__url: 'jdbc:postgresql://dspacedb:5432/dspace'
|
|
# solr.server: Ensure we are using the 'dspacesolr' image for Solr
|
|
solr__P__server: http://dspacesolr:8983/solr
|
|
volumes:
|
|
# Keep DSpace assetstore directory between reboots
|
|
- assetstore:/dspace/assetstore
|
|
# Mount local [src]/dspace/config/ to container. This syncs your local configs with container
|
|
# NOTE: Environment variables specified above will OVERRIDE any configs in local.cfg or dspace.cfg
|
|
- ./dspace/config:/dspace/config
|
|
entrypoint: /dspace/bin/dspace
|
|
command: help
|
|
tty: true
|
|
stdin_open: true
|
|
|
|
volumes:
|
|
assetstore:
|