forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-shibboleth.yml
39 lines (38 loc) · 1.37 KB
/
docker-compose-shibboleth.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
#
# 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/
#
#
# Test environment for DSpace + Shibboleth (running via mod_shib in Apache). See README for instructions.
# This should NEVER be used in production scenarios.
#
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-shibboleth:
container_name: dspace-shibboleth
depends_on:
- dspace
image: dspace/dspace-shibboleth
build:
# Must be relative to root, so that it can be built alongside [src]/docker-compose.yml
context: ./dspace/src/main/docker/dspace-shibboleth
ports:
- published: 80
target: 80
- published: 443
target: 443
stdin_open: true
tty: true
environment:
# Default to using "localhost" for Apache & Shibboleth
# However, you can override this via the "DSPACE_HOSTNAME" environment variable.
# e.g., if using ngrok.com as a proxy, set to ngrok.io server: "DSPACE_HOSTNAME=[random-string].ngrok.io"
APACHE_SERVER_NAME: '${DSPACE_HOSTNAME:-localhost}'