forked from esmero/archipelago-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-nginx.yml
99 lines (98 loc) · 2.35 KB
/
docker-compose-nginx.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
# Run docker-compose run -d
# drush config-import
# If running Linux, make sure /persistent/iiifcache has 100:100 ownership
# If running Linux, make sure /persistent/solrcore has 8983:8983 ownership
# enabling :cache for the volumens can bypass that need.
# on OSX brew install minio/stable/mc for the minio client
version: '3.5'
services:
web:
container_name: esmero-web
restart: always
image: "nginx"
depends_on:
- solr
- php
tty: true
ports:
- "8001:80"
networks:
- host-net
- esmero-net
volumes:
- ${PWD}/nginxconfigford8/default.conf:/etc/nginx/conf.d/default.conf:ro
- ${PWD}:/var/www/html:cached
php:
container_name: esmero-php
restart: always
image: "esmero/php-7.3-fpm:8.x-1.0-beta2"
tty: true
networks:
- host-net
- esmero-net
volumes:
- ${PWD}:/var/www/html:cached
solr:
container_name: esmero-solr
restart: always
image: "solr:7.5.0"
tty: true
ports:
- "8983:8983"
networks:
- host-net
- esmero-net
volumes:
- ${PWD}/persistent/solrcore:/opt/solr/server/solr/mycores:cached
- ${PWD}/persistent/solrconfig:/drupalconfig:cached
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- drupal
- /drupalconfig
# see https://hub.docker.com/_/mysql/
db:
image: mysql:5.7
command: --max_allowed_packet=256M
container_name: esmero-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: esmerodb
networks:
- host-net
- esmero-net
volumes:
- ${PWD}/persistent/db:/var/lib/mysql:cached
iiif:
container_name: esmero-cantaloupe
image: "esmero/cantaloupe-s3:4.1.5"
restart: always
ports:
- "8183:8182"
networks:
- host-net
- esmero-net
volumes:
- ${PWD}/persistent/iiifconfig:/etc/cantaloupe
- ${PWD}/persistent/iiifcache:/var/cache/cantaloupe
minio:
container_name: esmero-minio
restart: always
image: minio/minio:latest
volumes:
- ${PWD}/persistent/miniodata:/data:cached
ports:
- "9000:9000"
networks:
- host-net
- esmero-net
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server /data
networks:
host-net:
driver: bridge
esmero-net:
driver: bridge
internal: true