-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
106 lines (101 loc) · 3.44 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: "3"
services:
omeka-ecosystem:
container_name: madoc-nlw-omeka
build:
context: .
links:
- mysql
environment:
- APP_ENV=${APP_ENV}
- OMEKA__DATABASE_HOST=madoc-nlw-database
- OMEKA__DATABASE_NAME=${MYSQL_DATABASE}
- OMEKA__DATABASE_USER=${MYSQL_USER}
- OMEKA__DATABASE_PASSWORD=${MYSQL_PASSWORD}
- OMEKA__DATABASE_PORT=${MYSQL_PORT}
- OMEKA__MAIN_SITE_DOMAIN=${MAIN_SITE_DOMAIN}
- OMEKA__ELUCIDATE_URL=${ELUCIDATE_URL}
- OMEKA__ELUCIDATE_PUBLIC_DOMAIN=${ELUCIDATE_PUBLIC_DOMAIN}
# 1.2.x additions.
- OMEKA__INTERNAL_URL=${OMEKA_INTERNAL_URL}
- OMEKA__ANNOTATION_INDEXER=${ANNOTATION_INDEXER}
- OMEKA__SEARCH_ELASTICSEARCH=madoc-nlw-elasticsearch:9200
- OMEKA__ANNOTATION_ES_INDEX=${FOUNDA_ANNOTATION_INDEX:-jane-annotations}
- OMEKA__SEARCH_INDEXER=madoc-nlw-search-indexer:8000
ports:
- "8898:80"
volumes:
- ./nlw-madoc-theme:/srv/omeka/themes/nlw-madoc-theme:Z
- ./nlw-pcw-madoc-theme:/srv/omeka/themes/nlw-pcw-madoc-theme:Z
- ./translations/s:/srv/omeka/translations/s:Z
- ./var/files:/srv/omeka/files:Z
mysql:
container_name: madoc-nlw-database
build:
context: ./
dockerfile: Dockerfile.db
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_PORT=${MYSQL_PORT}
annotation-server:
container_name: nlw-annotation-server
image: "garyttierneydi/elucidate-server:1.4.3-SNAPSHOT"
links:
- annotation-database:database
environment:
- DATABASE_USER=postgres
- CATALINA_OPTS=-Ddb.url=jdbc:postgresql://database:5432/annotations -Ddb.user="postgres" -Ddb.password=$MYSQL_PASSWORD
# 1.2.x additions
- BASE_HOST=${ELUCIDATE_BASE_HOST}
- BASE_PORT=${ELUCIDATE_BASE_PORT}
ports:
- 8899:8080
annotation-database:
container_name: nlw-annotation-database
image: "garyttierneydi/elucidate-database:1.4.3-SNAPSHOT"
environment:
- POSTGRES_DB=annotations
# 1.2.x additions
elasticsearch:
container_name: madoc-nlw-elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:6.7.2
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.type=single-node"
volumes:
- ./var/es:/usr/share/elasticsearch/data
ports:
- 9203:9200
- 9204:9201
search-founda:
image: digirati/jane-founda:${FOUNDA_VERSION:-d0e7610dc15073e85fce20ee42215e192b16907b}
environment:
- WORKERS=2
- search_annotation_index=${FOUNDA_ANNOTATION_INDEX:-jane-annotations}
- search_elasticsearch_base=madoc-nlw-elasticsearch
- search_elasticsearch_port=9200
- search_ssl_boolean=${FOUNDA_SEARCH_SSL:-false}
ports:
- 8103:8000
links:
- elasticsearch
madoc-indexer:
container_name: madoc-nlw-search-indexer
image: digirati/madoc-indexer:${FOUNDA_INDEXER_VERSION:-6d29685681be404861aa745a39ec3b21a5fb13c2}
environment:
- WORKERS=2
- search_annotation_index=${FOUNDA_ANNOTATION_INDEX:-jane-annotations}
- search_elasticsearch_base=madoc-nlw-elasticsearch
- search_elasticsearch_port=9200
- search_ssl_boolean=${FOUNDA_SEARCH_SSL:-false}
ports:
- 8104:8000
links:
- omeka-ecosystem
- annotation-server
- elasticsearch
- search-founda