-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (65 loc) · 1.64 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
version: '2.1'
services:
rdbms:
image: mariadb:10.4
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=openoni
- MYSQL_USER=openoni
- MYSQL_PASSWORD=openoni
volumes:
- ./conf/mysql/:/etc/mysql/conf.d:Z
- data-mariadb:/var/lib/mysql
solr:
image: solr:8.3-slim
volumes:
- data-solr:/var/solr
command:
- solr-precreate
- openoni
rais:
image: uolibraries/rais
ports:
- "12415:12415"
environment:
- RAIS_IIIFURL=${ONI_IIIF_URL:-http://localhost/images/iiif}
- RAIS_TILECACHELEN=250
- RAIS_TILEPATH=/opt/openoni/data/batches
volumes:
# Image files must be available at RAIS_TILEPATH
- ./data/batches:/opt/openoni/data/batches:z
web:
build:
context: .
dockerfile: Dockerfile
command:
- /open-oni/dc-local.sh
volumes:
- ./bin/dc-local.sh:/open-oni/dc-local.sh
- ${PWD}/config/urls.py:/open-oni/onisite/urls.py
- ${PWD}/config/settings_local.py:/open-oni/onisite/settings_local.py
- ./data/batches:/open-oni/data/batches
- ./open-oni:/open-oni
- ./themes/pana:/open-oni/themes/pana
ports:
- "${HTTPPORT:-8081}:8000"
depends_on:
- rdbms
environment:
- APACHE_LOG_LEVEL=${APACHE_LOG_LEVEL:-warn}
- ONI_BASE_URL
- ONI_DB_HOST
- ONI_DB_PORT
- ONI_DB_NAME
- ONI_DB_USER
- ONI_DB_PASSWORD
- ONI_DEBUG
- ONI_HSTS_SECONDS
- ONI_IIIF_URL=http://localhost:12415/iiif
- ONI_LOG_SQL
- ONI_LOG_TO_FILE
- ONI_SECRET_KEY
- ONI_SOLR_URL
volumes:
data-mariadb: {}
data-solr: {}