-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose-aws-s3-arm64.yml
190 lines (190 loc) · 6.42 KB
/
docker-compose-aws-s3-arm64.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# Run docker-compose up -d
# Docker file for Arm64 and Apple M1/M2/M3 machines
services:
web:
container_name: esmero-web
image: jonasal/nginx-certbot
# image: esmero/nginx-bot-blocker:1.1.0-multiarch
restart: always
environment:
CERTBOT_EMAIL: ${ARCHIPELAGO_EMAIL}
ENVSUBST_VARS: FQDN
FQDN: ${ARCHIPELAGO_DOMAIN}
NGINX_ENVSUBST_OUTPUT_DIR: /etc/nginx/user_conf.d
# MSMTP_ACCOUNT: ${MSMTP_ACCOUNT}
# MSMTP_EMAIL: ${MSMTP_EMAIL}
# MSMTP_HOST: ${MSMTP_HOST}
# MSMTP_PASSWORD: ${MSMTP_PASSWORD}
# MSMTP_PORT: ${MSMTP_PORT}
# MSMTP_STARTTLS: ${MSMTP_STARTTLS}
# NGXBLOCKER_CRON: ${NGXBLOCKER_CRON}
# NGXBLOCKER_CRON_COMMAND: ${NGXBLOCKER_CRON_COMMAND}
# NGXBLOCKER_CRON_START: ${NGXBLOCKER_CRON_START}
# NGXBLOCKER_ENABLE: ${NGXBLOCKER_ENABLE}
ports:
- "80:80"
- "443:443"
volumes:
- ${ARCHIPELAGO_ROOT}/config_storage/nginxconfig/template:/etc/nginx/templates
- ${ARCHIPELAGO_ROOT}/drupal:/var/www/html:cached
- ${ARCHIPELAGO_ROOT}/data_storage/ngnixcache:/var/cache/nginx
- ${ARCHIPELAGO_ROOT}/data_storage/letsencrypt:/etc/letsencrypt
# - ${ARCHIPELAGO_ROOT}/config_storage/nginxconfig/bots.d:/etc/nginx/bots.d
depends_on:
- solr
- php
- db
- redis
tty: true
networks:
- host-net
- esmero-net
php:
container_name: esmero-php
restart: always
image: "esmero/php-8.1-fpm:1.2.0-multiarch"
tty: true
networks:
- host-net
- esmero-net
volumes:
- ${ARCHIPELAGO_ROOT}/config_storage/php-fpm/www.conf:/usr/local/etc/php-fpm.d/www.conf
- ${ARCHIPELAGO_ROOT}/drupal:/var/www/html:cached
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MINIO_BUCKET_MEDIA: ${MINIO_BUCKET_MEDIA}
MINIO_FOLDER_PREFIX_MEDIA: ${MINIO_FOLDER_PREFIX_MEDIA}
REDIS_PASSWORD: ${REDIS_PASSWORD}
solr:
container_name: esmero-solr
restart: always
image: "solr:9.2.1"
# If running Docker < 20.10.10 please uncomment the following lines
# See https://solr.apache.org/guide/solr/latest/upgrade-notes/major-changes-in-solr-9.html#solr-9-2
#security_opt:
# - seccomp:unconfined
tty: true
environment:
SOLR_HEAP: 1024m
SOLR_OPTS: -Dsolr.jetty.request.header.size=65535 -Dsolr.modules=scripting
ports:
- "8983:8983"
networks:
- host-net
- esmero-net
volumes:
- ${ARCHIPELAGO_ROOT}/data_storage/solrcore:/var/solr/data
- ${ARCHIPELAGO_ROOT}/config_storage/solrconfig:/drupalconfig
- ${ARCHIPELAGO_ROOT}/data_storage/solrlib:/opt/solr/contrib/archipelago/lib
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- drupal
- /drupalconfig
db:
image: mariadb:10.6.18-focal
command: mysqld --innodb_read_only_compressed=OFF --binlog-expire-logs-seconds=172800 --max_allowed_packet=256M --sort_buffer_size=512K --lower_case_table_names=1 --transaction-isolation=READ-COMMITTED --log-bin=mysqld-bin
container_name: esmero-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
# Uncomment the next line if upgrading from a previous mariadb version. 1.3.0 shipped with 10.6.12
# MARIADB_AUTO_UPGRADE: true
networks:
- host-net
- esmero-net
volumes:
- ${ARCHIPELAGO_ROOT}/data_storage/db:/var/lib/mysql
nlp:
container_name: esmero-nlp
restart: always
image: "esmero/esmero-nlp:fasttext-multiarch"
# ML processing image. Live does not ship with ML configurations. But if you need to
# evaluate the tools on a Cloud server instead of a local replace previous image with this.
#image: "esmero/esmero-nlp:1.4.1-arm64"
ports:
- "6400:6400"
networks:
- host-net
- esmero-net
iiif:
container_name: esmero-cantaloupe
image: "esmero/cantaloupe-s3:6.0.1-multiarch"
restart: always
ports:
- "8183:8182"
networks:
- host-net
- esmero-net
environment:
AWS_ACCESS_KEY_ID: ${MINIO_ACCESS_KEY}
AWS_SECRET_ACCESS_KEY: ${MINIO_SECRET_KEY}
CACHE_SERVER_DERIVATIVE: S3Cache
S3SOURCE_BASICLOOKUPSTRATEGY_BUCKET_NAME: ${MINIO_BUCKET_MEDIA}
S3SOURCE_BASICLOOKUPSTRATEGY_PATH_PREFIX: ${MINIO_FOLDER_PREFIX_MEDIA}
S3CACHE_BUCKET_NAME: ${MINIO_BUCKET_CACHE}
S3CACHE_OBJECT_KEY_PREFIX: ${MINIO_FOLDER_PREFIX_CACHE}
XMS: 2g
XMX: 8g
volumes:
- ${ARCHIPELAGO_ROOT}/config_storage/iiifconfig:/etc/cantaloupe
- ${ARCHIPELAGO_ROOT}/data_storage/iiifcache:/var/cache/cantaloupe
- ${ARCHIPELAGO_ROOT}/data_storage/iiiftmp:/var/cache/cantaloupe_tmp
minio:
container_name: esmero-minio
restart: always
image: minio/minio:RELEASE.2022-06-11T19-55-32Z
volumes:
- ${ARCHIPELAGO_ROOT}/data_storage/minio-data:/data:cached
# If you are using a Native Cloud Storage you can gain performance by not using min.io
# at all. Recommended only for Local Drives to S3 or for non native S3 (e.g Azure) routing
# Uncomment for min.io level cache - /mnt/data/cache:/cache
ports:
- "9000:9000"
- "9001:9001"
networks:
- host-net
- esmero-net
environment:
MINIO_HTTP_TRACE: /tmp/minio-log.txt
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
# MINIO_CACHE_DRIVES: /cache
# MINIO_CACHE_EXCLUDE: "*.json,*.jpg,*.jpeg"
# MINIO_CACHE_QUOTA: 80
# MINIO_CACHE_RANGE: "off"
# MINIO_CACHE_AFTER: 3
# MINIO_CACHE_WATERMARK_LOW: 70
# MINIO_CACHE_WATERMARK_HIGH: 90
command: gateway s3 https://s3.amazonaws.com/ --console-address ":9001"
redis:
container_name: esmero-redis
image: redis:6.2-alpine
restart: always
ports:
- "6379:6379"
command: >
--requirepass ${REDIS_PASSWORD}
--save ""
# To allow Redis to write caches every 20 seconds, and reload on restart, uncomment the following line and comment the previous one out.
# --save 20 1
--loglevel warning
--maxmemory-policy allkeys-lru
--maxmemory 2gb
networks:
- esmero-net
volumes:
- redis-cache:/data
networks:
host-net:
driver: bridge
esmero-net:
driver: bridge
internal: true
volumes:
redis-cache:
driver: local