-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose-aws-s3.yml
131 lines (130 loc) · 3.77 KB
/
docker-compose-aws-s3.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
# Run docker-compose run -d
version: '3.5'
services:
web:
container_name: esmero-web
image: staticfloat/nginx-certbot
restart: always
environment:
CERTBOT_EMAIL: ${ARCHIPELAGO_EMAIL}
ENVSUBST_VARS: FQDN
FQDN: ${ARCHIPELAGO_DOMAIN}
ports:
- "80:80"
- "443:443"
volumes:
- ${ARCHIPELAGO_ROOT}/config_storage/nginxconfig/conf.d:/etc/nginx/user.conf.d
- ${ARCHIPELAGO_ROOT}/config_storage/nginxconfig/certbot_extra_domains:/etc/nginx/certbot/extra_domains:ro
- ${ARCHIPELAGO_ROOT}/drupal:/var/www/html:cached
- ${ARCHIPELAGO_ROOT}/data_storage/ngnixcache:/var/cache/nginx
- ${ARCHIPELAGO_ROOT}/data_storage/letsencrypt:/etc/letsencrypt
depends_on:
- solr
- php
- db
tty: true
networks:
- host-net
- esmero-net
php:
container_name: esmero-php
restart: always
image: "esmero/php-7.4-fpm:1.0.0-RC1"
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}
solr:
container_name: esmero-solr
restart: always
image: "solr:8.8.2"
tty: true
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: mysql:8.0.22
command: mysqld --default-authentication-plugin=mysql_native_password --max_allowed_packet=256M
container_name: esmero-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
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:1.0"
ports:
- "6400:6400"
networks:
- host-net
- esmero-net
iiif:
container_name: esmero-cantaloupe
image: "esmero/cantaloupe-s3:4.1.9RC"
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: 4g
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:latest
volumes:
- ${ARCHIPELAGO_ROOT}/data_storage/minio-data:/data:cached
ports:
- "9000:9000"
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}
command: gateway s3 https://s3.amazonaws.com/
networks:
host-net:
driver: bridge
esmero-net:
driver: bridge
internal: true