-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
134 lines (129 loc) · 3.63 KB
/
docker-compose.yml
File metadata and controls
134 lines (129 loc) · 3.63 KB
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
version: '2'
services:
apache:
container_name: scratchpads.apache
platform: linux/amd64
image: naturalhistorymuseum/scratchpads.apache:latest
build:
context: ./docker/apache
# args:
# uid: 10001
# user: scratchpads-apache
# group: scratchpads-apache
restart: always
links:
- mysql
depends_on:
- mysql
- solr
ports:
- "8080:8080"
volumes:
- apache-files:/var/www/html/sites/default
environment:
- DEVELOPMENT_ENV=${DEVELOPMENT_ENV}
- BASE_URL=${APACHE_BASE_URL}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_HOST=${MYSQL_HOST}
- SOLR_URL=${SOLR_URL}
- SOLR_CORE=scratchpads2
- SMTP_FROM=${APACHE_SMTP_FROM}
- SMTP_HOST=${APACHE_SMTP_HOST}
- SMTP_PORT=${APACHE_SMTP_PORT}
- SMTP_USER=${APACHE_SMTP_USER}
- SMTP_PASSWORD=${APACHE_SMTP_PASSWORD}
- SMTP_TLS=${APACHE_SMTP_TLS}
- SMTP_AUTH=${APACHE_SMTP_AUTH}
- SMTP_START_TLS=${APACHE_SMTP_START_TLS}
- VARNISH_SECRET=${VARNISH_SECRET}
- APACHE_RUN_DIR=/var/run/apache2
- APACHE_PID_FILE=/var/run/apache2/apache2.pid
- APACHE_RUN_USER=www-data
- APACHE_RUN_GROUP=www-data
- APACHE_LOG_DIR=/var/log/apache2
- APACHE_PHP_MEMORY_LIMIT=${APACHE_PHP_MEMORY_LIMIT}
- APACHE_PHP_UPLOAD_MAX_FILESIZE=${APACHE_PHP_UPLOAD_MAX_FILESIZE}
- APACHE_PHP_POST_MAX_SIZE=${APACHE_PHP_POST_MAX_SIZE}
- APACHE_PHP_MAX_INPUT_VARS=${APACHE_PHP_MAX_INPUT_VARS}
- APACHE_OPCACHE_ENABLED=${APACHE_OPCACHE_ENABLED}
- GITHUB_AUTH_KEY=${APACHE_GITHUB_AUTH_KEY}
- GITHUB_REPOSITORY=${APACHE_GITHUB_REPOSITORY}
- GBIF_REGISTRY_PASSWORD=${GBIF_REGISTRY_PASSWORD}
logging:
driver: json-file
options:
max-file: "5"
max-size: "100m"
mysql:
container_name: scratchpads.mysql
platform: linux/amd64
restart: always
image: naturalhistorymuseum/scratchpads.mysql:${TAG}
ports:
- "3306:3306"
expose:
- 3306
build:
context: ./docker/mysql
volumes:
- mysql-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
logging:
driver: json-file
options:
max-file: "5"
max-size: "100m"
solr:
container_name: scratchpads.solr
platform: linux/amd64
restart: always
image: naturalhistorymuseum/scratchpads.solr:${TAG}
build:
context: ./docker/solr
ports:
- "8983:8983"
expose:
- 8983
volumes:
- solr-data:/var/lib/solr-undertow/solr-home/scratchpads2/data:rw
environment:
- SOLR_UNDERTOW_OPTS=-Xms${SOLR_JVM_MEMORY} -Xmx${SOLR_JVM_MEMORY} -XX:MaxPermSize=512m -XX:PermSize=256m
logging:
driver: json-file
options:
max-file: "5"
max-size: "100m"
varnish:
restart: always
container_name: scratchpads.varnish
platform: linux/amd64
image: naturalhistorymuseum/scratchpads.varnish:${TAG}
build:
context: ./docker/varnish
args:
APACHE_SERVICE: weblogic1
depends_on:
- apache
expose:
- 6082
ports:
- "${VARNISH_PORT_EXPOSE}:${VARNISH_PORT}"
environment:
VARNISH_PORT: ${VARNISH_PORT}
VARNISH_SECRET: ${VARNISH_SECRET}
VARNISH_MEMORY: ${VARNISH_MEMORY}
logging:
driver: json-file
options:
max-file: "5"
max-size: "100m"
volumes:
apache-files:
mysql-data:
solr-data: