-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
83 lines (83 loc) · 3.19 KB
/
docker-compose.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
73
74
75
76
77
78
79
80
81
82
83
services:
publisher:
build:
context: ${BUILD_CONTEXT:-.}
# use one of the below instead if you want to build from an external git repository (needs a Dockerfile):
# context: https://github.com/eeditiones/tei-publisher-app.git#master
# if the repo is not public, you may need to provide an ACCESS_TOKEN (specify in .env)
# context: https://${ACCESS_TOKEN_NAME}:${ACCESS_TOKEN_VALUE}@gitlab.com/xxx/xxx.git
dockerfile: Dockerfile
args:
# Name of the custom app to include - should correspond to the name of the repository
APP_NAME: ${APP_NAME:-tei-publisher}
# Tag or branch to build
APP_TAG_OR_BRANCH: ${APP_TAG_OR_BRANCH:-v8.0.0}
# GIT repository to clone the app from
APP_REPO: ${APP_REPO:-https://github.com/eeditiones/tei-publisher-app.git}
# Endpoint for the named entity recognition service.
NER_ENDPOINT: http://ner:8001
# Set to 'auto' if the app should be exposed under its full path (e.g. /exist/apps/tei-publisher)
# use empty string if the app is mapped to the root of the server (see nginx config below)
CONTEXT_PATH: ${CONTEXT_PATH:-}
PROXY_CACHING: true
# comment in to automatically restart:
restart: always
volumes:
# database files will be stored in a volume to avoid data loss
# when the service is updated
- /exist/data
# uncomment to map eXist-db backups to local directory
# - ./backup:/exist/backup
ports:
- 8080:8080
depends_on:
- ner
ner:
# image will be pulled from github
image: ghcr.io/eeditiones/tei-publisher-ner/teipublisher-ner:master
# enable if you want to build from source:
# build:
# context: https://github.com/eeditiones/tei-publisher-ner.git#master
# dockerfile: Dockerfile
# comment in to automatically restart:
restart: always
frontend:
image: nginx:alpine
environment:
# eXist-db path the root of the server will be mapped to
# should point to the app path if CONTEXT_PATH is empty (see above)
# or the empty string otherwise
ROOT_PATH: ${ROOT_PATH:-/exist/apps/tei-publisher}
# Name of the server - irrelevant on localhost
SERVER_NAME: ${SERVER_NAME:-example.com}
volumes:
- ./nginx/conf/:/etc/nginx/conf.d/:rw
- ./nginx/templates:/etc/nginx/templates/:ro
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
ports:
- 80:80
- 443:443
depends_on:
- publisher
- cantaloupe
# comment in to automatically restart:
restart: always
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
cantaloupe:
image: islandora/cantaloupe:2.0.10
environment:
CANTALOUPE_FILESYSTEMSOURCE_BASICLOOKUPSTRATEGY_PATH_PREFIX: /images/
CANTALOUPE_SOURCE_STATIC: FilesystemSource
CANTALOUPE_ENDPOINT_ADMIN_ENABLED: false
CANTALOUPE_ENDPOINT_ADMIN_SECRET: my_admin_pass
volumes:
- ${IIIF_IMAGES}:/images
restart: always
# comment in to enable access to cantaloupe on port 8182, including admin interface
ports:
- 8182:8182