forked from Islandora-Collaboration-Group/ISLE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
166 lines (156 loc) · 4.79 KB
/
docker-compose.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
version: '3'
#### docker-compose up -d;
## Updated 2019-03-27 - Release 1.1.1 (@ 1.1.1)
services:
isle-portainer: ## Renamed to avoid conflicts on systems/servers with portainer already running.
image: portainer/portainer
container_name: isle-portainer-${CONTAINER_SHORT_ID}
command: -H unix:///var/run/docker.sock --no-auth
networks:
- isle-internal
ports:
- "9010:9000" ## Remapped to avoid conflicts on systems/servers with portainer already running.
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- isle-portainer-data:/data
labels:
- traefik.port=9000
- traefik.docker.network=${COMPOSE_PROJECT_NAME}_isle-internal
- traefik.enable=true ## NOT SAFE FOR PRODUCTION! ##
- "traefik.frontend.rule=Host:portainer.${BASE_DOMAIN};"
mysql:
# build:
# context: ../images/isle-mysql
image: islandoracollabgroup/isle-mysql:1.1.1
container_name: isle-mysql-${CONTAINER_SHORT_ID}
environment:
- MYSQL_ROOT_PASSWORD
networks:
- isle-internal
volumes:
- isle-db-data:/var/lib/mysql
- isle-mysql-log:/var/log/mysql
fedora:
# build:
# context: ../images/isle-fedora
image: islandoracollabgroup/isle-fedora:1.1.1
container_name: isle-fedora-${CONTAINER_SHORT_ID}
environment:
- JAVA_MAX_MEM=768M
- JAVA_MIN_MEM=128M
env_file:
- tomcat.env
- .env
networks:
- isle-internal
ports:
- "8081:8080"
depends_on:
- mysql
- solr
volumes:
- isle-fedora-datastreamStore:/usr/local/fedora/data/datastreamStore # Migrators change this to your local DS folder.
- isle-fedora-objectStore:/usr/local/fedora/data/objectStore # Migrators change this to your local OS folder.
- isle-fedora-resourceIndex:/usr/local/fedora/data/resourceIndex # Migrators change this to your local RI folder.
- isle-fedora-activemq:/usr/local/fedora/data/activemq-data # Migrators change this to your local MQ folder.
- isle-fedora-XACML:/usr/local/fedora/data/fedora-xacml-policies
- ./logs/fedora/fcrepo:/usr/local/fedora/server/logs
- ./logs/fedora/tomcat:/usr/local/tomcat/logs
solr:
# build:
# context: ../images/isle-solr
image: islandoracollabgroup/isle-solr:1.1.1
container_name: isle-solr-${CONTAINER_SHORT_ID}
environment:
- JAVA_MAX_MEM=512M
- JAVA_MIN_MEM=0
env_file:
- tomcat.env
networks:
- isle-internal
ports:
- "8082:8080"
depends_on:
- mysql
volumes:
- isle-solr-data:/usr/local/solr
- ./logs/solr:/usr/local/tomcat/logs
image-services:
# build:
# context: ../images/isle-imageservices
image: islandoracollabgroup/isle-imageservices:1.1.1
container_name: isle-images-${CONTAINER_SHORT_ID}
environment:
- JAVA_MAX_MEM=512M
- JAVA_MIN_MEM=0
env_file:
- tomcat.env
- .env
networks:
- isle-internal
depends_on:
- apache
- fedora
ports:
- "8083:8080"
volumes:
- ./logs/imageservices:/usr/local/tomcat/logs
labels:
- traefik.docker.network=${COMPOSE_PROJECT_NAME}_isle-internal
- traefik.enable=false
- "traefik.frontend.rule=Host:images.${BASE_DOMAIN}; PathPrefix: /, /adore-djatoka, /cantaloupe"
apache:
# build:
# context: ../images/isle-apache
image: islandoracollabgroup/isle-apache:1.1.1
container_name: isle-apache-${CONTAINER_SHORT_ID}
env_file:
- .env
networks:
isle-internal:
depends_on:
- mysql
- fedora
- solr
- traefik
volumes:
- isle-apache-data:/var/www/html
- ./logs/apache/httpd:/var/log/apache2
- ./logs/apache/fits:/var/log/fits
labels:
- traefik.docker.network=${COMPOSE_PROJECT_NAME}_isle-internal
- traefik.enable=true
- "traefik.frontend.rule=Host:${BASE_DOMAIN}; PathPrefix: /, /adore-djatoka, /cantaloupe"
traefik:
image: traefik:1.7.9
container_name: isle-proxy-${CONTAINER_SHORT_ID}
networks:
isle-internal:
isle-external:
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./config/proxy/ssl-certs:/certs:ro ## Place certs here.
- ./config/proxy/traefik.toml:/etc/traefik/traefik.toml ## Edit line 27, 28 with your cert and key names.
labels:
- traefik.port=8080
- traefik.enable=true ## NOT SAFE FOR PRODUCTION! ##
- traefik.frontend.rule=Host:admin.${BASE_DOMAIN};
# Defined networks
networks:
isle-internal:
isle-external:
volumes:
isle-db-data:
isle-mysql-log:
isle-solr-data:
isle-apache-data:
isle-portainer-data:
isle-fedora-datastreamStore:
isle-fedora-objectStore:
isle-fedora-resourceIndex:
isle-fedora-activemq:
isle-fedora-XACML: