This repository has been archived by the owner on Mar 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
155 lines (145 loc) · 4.23 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
version: '3'
#### docker-compose up -d;
## Updated 2018-08-31 - Release 1.1.0
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.backend=port-isle-${CONTAINER_SHORT_ID}
- traefik.docker.network=${COMPOSE_PROJECT_NAME}_isle-internal
- traefik.enable=true
- "traefik.frontend.rule=Host:portainer.${BASE_DOMAIN};"
mysql:
# build:
# context: ./images/mysql
image: islandoracollabgroup/isle-mysql:latest
container_name: isle-mysql-${CONTAINER_SHORT_ID}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
networks:
- isle-internal
volumes:
- isle-db-data:/var/lib/mysql
- ./logs/mysql:/var/log/mysql
fedora:
# build:
# context: ./images/isle-fedora
image: benjaminrosner/isle-fedora:latest
container_name: isle-fedora-${CONTAINER_SHORT_ID}
environment:
- JAVA_MAX_MEM=768M
- JAVA_MIN_MEM=128M
networks:
- isle-internal
ports:
- "8081:8080"
depends_on:
- mysql
- solr
volumes:
- isle-fedora-data:/usr/local/fedora/data
- ./logs/fedora/fcrepo:/usr/local/fedora/server/logs
- ./logs/fedora/tomcat:/usr/local/tomcat/logs
solr:
# build:
# context: ./images/isle-solr
image: benjaminrosner/isle-solr:latest
container_name: isle-solr-${CONTAINER_SHORT_ID}
environment:
- JAVA_MAX_MEM=512M
- JAVA_MIN_MEM=0
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: benjaminrosner/isle-imageservices:latest
container_name: isle-images-${CONTAINER_SHORT_ID}
environment:
- JAVA_MAX_MEM=512M
- JAVA_MIN_MEM=0
networks:
- isle-internal
depends_on:
- apache
- fedora
ports:
- "8083:8080"
volumes:
- ./logs/imageservices:/usr/local/tomcat/logs
labels:
- traefik.backend=isle-imageservices-${CONTAINER_SHORT_ID}
- traefik.docker.network=${COMPOSE_PROJECT_NAME}_isle-internal
- traefik.enable=true
- "traefik.frontend.rule=Host:images.${BASE_DOMAIN}; PathPrefix: /, /adore-djatoka, /cantaloupe"
apache:
# build:
# context: ./images/isle-apache
image: benjaminrosner/isle-apache:latest
container_name: isle-apache-${CONTAINER_SHORT_ID}
environment:
- PULL_ISLE_BUILD_TOOLS=true # Defaults to true.
networks:
isle-internal:
aliases:
- ${BASE_DOMAIN}
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.backend=isle-apache-${CONTAINER_SHORT_ID}
- traefik.docker.network=${COMPOSE_PROJECT_NAME}_isle-internal
- traefik.enable=true
- "traefik.frontend.rule=Host:${BASE_DOMAIN}; PathPrefix: /, /adore-djatoka, /cantaloupe"
traefik:
image: traefik:latest
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/traefik/traefik.toml:/traefik.toml
- ./config/traefik/isle.localdomain:/certs/isle.localdomain
labels:
- traefik.backend=isle-proxy-${CONTAINER_SHORT_ID}
- traefik.port=8080
- traefik.enable=true
- traefik.frontend.rule=Host:admin.${BASE_DOMAIN};
# Defined networks
networks:
isle-internal:
isle-external:
volumes:
isle-db-data:
isle-fedora-data:
isle-solr-data:
isle-apache-data:
isle-portainer-data: