-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.bagger.yml
72 lines (66 loc) · 2.86 KB
/
docker-compose.bagger.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Deployment of the Islandora Bagger container alongside an isle-site-template
#
# Steps:
# * add the following to the `.env` file
# # Chain docker-compose.yml files
# COMPOSE_PATH_SEPARATOR=:
# COMPOSE_FILE=docker-compose.yml:docker-compose.bagger.yml
# # Environment for the Islandora Bagger container
# BAGGER_REPOSITORY=ghcr.io/cwrc
# BAGGER_TAG=local
# BAGGER_DEFAULT_PER_BAG_REGISTER_BAGS_WITH_ISLANDORA=true
#
# * copy this file into the repo
# * temporarily for a dev site, copy local `build/certs/rootCA.pem` into the container /etc/ssl/certs/ca-certificates.crt otherwise REST request receive a cert error (e.g., curl)
x-dev: &dev
secrets:
- source: CERT_PUBLIC_KEY
- source: CERT_PRIVATE_KEY
- source: CERT_AUTHORITY
- source: UID
- source: GID
- source: BAGGER_DRUPAL_DEFAULT_ACCOUNT_PASSWORD
x-devs: &devs
- source: CERT_PUBLIC_KEY
secrets:
UID:
file: ./custom/secrets/UID
GID:
file: ./custom/secrets/UID
BAGGER_DRUPAL_DEFAULT_ACCOUNT_PASSWORD:
file: ./custom/secrets/DRUPAL_DEFAULT_ACCOUNT_PASSWORD
# Certificates are only used for development environments.
# In production the expectation is to use lets encrypt, etc.
# See README.md for how to generate them.
CERT_PUBLIC_KEY:
file: ./build/certs/cert.pem
CERT_PRIVATE_KEY:
file: ./build/certs/privkey.pem
CERT_AUTHORITY:
file: ./build/certs/rootCA.pem
volumes:
bagger-data: {}
services:
bagger:
<<: *dev
restart: "no"
environment:
BAGGER_DRUPAL_URL: ${SITE:-"https://islandora.dev"}
BAGGER_CROND_ENABLE_SERVICE: ${BAGGER_CROND_ENABLE_SERVICE:-"true"}
BAGGER_CROND_SCHEDULE: ${BAGGER_CROND_SCHEDULE:-1 2 * * *}
BAGGER_CROND_LOG_LEVEL: ${BAGGER_CROND_LOG_LEVEL:-"8"}
BAGGER_BAG_DOWNLOAD_PREFIX: ${BAGGER_BAG_DOWNLOAD_PREFIX:-""} # unused
BAGGER_DEFAULT_PER_BAG_NAME_TEMPLATE: ${BAGGER_DEFAULT_PER_BAG_NAME_TEMPLATE:-"aip_%"}
BAGGER_DEFAULT_PER_BAG_CONTACT_NAME: ${BAGGER_DEFAULT_PER_BAG_CONTACT_NAME:-Contact Name}
BAGGER_DEFAULT_PER_BAG_CONTACT_EMAIL: ${BAGGER_DEFAULT_PER_BAG_CONTACT_EMAIL:-Contact EMail}
BAGGER_DEFAULT_PER_BAG_SOURCE_ORGANIZATION: ${BAGGER_DEFAULT_PER_BAG_SOURCE_ORGANIZATION:-Contact Organization}
BAGGER_DEFAULT_PER_BAG_HTTP_TIMEOUT: ${BAGGER_DEFAULT_PER_BAG_HTTP_TIMEOUT:-"120"}
BAGGER_DEFAULT_PER_BAG_DELETE_SETTINGS_FILE: ${BAGGER_DEFAULT_PER_BAG_DELETE_SETTINGS_FILE:-"false"}
BAGGER_DEFAULT_PER_BAG_LOG_BAG_CREATION: ${BAGGER_DEFAULT_PER_BAG_LOG_BAG_CREATION:-"true"}
BAGGER_DEFAULT_PER_BAG_LOG_BAG_LOCATION: ${BAGGER_DEFAULT_PER_BAG_LOG_BAG_LOCATION:-"false"}
BAGGER_DEFAULT_PER_BAG_REGISTER_BAGS_WITH_ISLANDORA: ${BAGGER_DEFAULT_PER_BAG_REGISTER_BAGS_WITH_ISLANDORA:-"false"}
image: ${BAGGER_REPOSITORY}/isle-bagger:${BAGGER_TAG}
networks:
default: {}
volumes:
- bagger-data:/var/www/bagger/var