-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
59 lines (56 loc) · 1.59 KB
/
docker-compose.yaml
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
services:
db:
container_name: gcha_db
image: mariadb:10.11
ports:
- "13306:3306"
volumes:
- .data/mariadb:/var/lib/mysql
- ./docker/mariadb/custom.cnf:/etc/mysql/conf.d/custom.cnf
environment:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: gcha
MARIADB_USER: gcha
MARIADB_PASSWORD: password
healthcheck:
test: mysql gcha -u gcha -ppassword -e 'SELECT 1;' || exit 1
interval: 2s
retries: 120
solr:
container_name: gcha_solr
image: solr:9.5
command: solr-precreate omeka
ports:
- "8983:8983"
volumes:
# overwrite default configset (managed-schema.xml & solrconfig.xml)
- ./docker/solr/managed-schema.xml:/opt/solr/server/solr/configsets/_default/conf/managed-schema.xml
- ./docker/solr/solrconfig.xml:/opt/solr/server/solr/configsets/_default/conf/solrconfig.xml
# persist data
- .data/solr:/var/solr
environment:
- SOLR_HEAP=500m
app:
container_name: gcha_app
build:
context: .
ports:
- "8080:80"
volumes:
# In prod remember to customize/override: (disable development mode)
# - application/config/config.ini
# - .htaccess
# code for development
- ./themes:/var/www/html/themes
- ./plugins:/var/www/html/plugins
# persist file uploads & logs
- .data/app/files:/var/www/html/files
- .data/app/log:/var/www/html/application/logs
depends_on:
db:
condition: service_healthy
mail:
container_name: gcha_mail
image: jcalonso/mailhog:v1.0.1
ports:
- "8025:8025"