forked from Islandora-Devops/isle-dc
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.fcrepo.yml
33 lines (33 loc) · 1.31 KB
/
docker-compose.fcrepo.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
version: "3.7"
networks:
default:
internal: true
gateway:
name: gateway
volumes:
fcrepo-data:
services:
fcrepo:
image: ${REPOSITORY:-islandora}/fcrepo:${TAG:-latest}
environment:
FCREPO_ALLOW_EXTERNAL_DRUPAL: http://islandora-${COMPOSE_PROJECT_NAME-isle-dc}.${DRUPAL_SITE_HOST-traefik.me}/
volumes:
- fcrepo-data:/data
depends_on:
- activemq
networks:
default:
aliases:
# Flysystem allows us to specify a single URL for Fedora, which is
# used for display as well. This means this service edge name must
# also be used in the default network for access by the `drupal`
# service.
- fcrepo-${COMPOSE_PROJECT_NAME-isle-dc}.${DRUPAL_SITE_HOST-traefik.me}
- fcrepo-${COMPOSE_PROJECT_NAME-isle-dc}-${DRUPAL_SITE_HOST-traefik.me}
gateway: # May want to disable in production if you wish to hide Fedora REST API from the internet.
labels:
# Do not expose in production.
- traefik.enable=true
- traefik.http.services.${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo.loadbalancer.server.port=80
- traefik.http.routers.${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo_http.service=${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo
- traefik.http.routers.${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo_http.entrypoints=http