-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
131 lines (129 loc) · 3.28 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
version: '3.7'
services:
archivesspace:
image: registry.gitlab.msu.edu/msu-libraries/public/archivesspace-docker:_TAG_
environment:
APPCONFIG_DB_URL: 'jdbc:mysql://db:3306/archivesspace?useUnicode=true&characterEncoding=UTF-8&user=as&password=as123&serverTimezone=America/Detroit'
# solr config
APPCONFIG_ENABLE_SOLR: 'false'
APPCONFIG_SOLR_URL: 'http://solr:8983/solr/archivesspace'
# proxy config
APPCONFIG_FRONTEND_PROXY_URL: 'https://TODO.edu/staff/'
APPCONFIG_OAI_PROXY_URL: 'https://TODO.edu/oai/'
APPCONFIG_PUBLIC_PROXY_URL: 'https://TODO.edu/'
JAVA_OPTS: "-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xss1024k -Xmx6144m -Djavax.accessibility.assistive_technologies=''"
ASPACE_JAVA_XMX: "-Xmx6144m"
ASPACE_JAVA_XSS: "-Xss1024k"
networks:
nonroutable_net:
volumes:
- aspace_logs:/archivesspace/logs
- aspace_data:/archivesspace/data
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
deploy:
mode: replicated
replicas: 1
restart_policy:
window: 15s
update_config:
failure_action: rollback
db:
image: mariadb:10.6
container_name: db
command: --character-set-server=utf8mb4 --innodb_buffer_pool_size=2G --log_bin_trust_function_creators=1 --log_error=/var/log/mysql/mysql_error.log
volumes:
- db:/var/lib/mysql
- db_logs:/var/log/mysql
environment:
TZ: America/Detroit
MYSQL_ROOT_PASSWORD: "123456"
MYSQL_DATABASE: archivesspace
MYSQL_USER: as
MYSQL_PASSWORD: as123
networks:
nonroutable_net:
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
deploy:
mode: replicated
replicas: 1
restart_policy:
window: 15s
update_config:
failure_action: rollback
solr:
image: registry.gitlab.msu.edu/msu-libraries/public/archivesspace-docker/solr:_TAG_
environment:
SOLR_JAVA_MEM: "-Xms1g -Xmx1g"
networks:
nonroutable_net:
volumes:
- solr:/var/solr
- solr_logs:/opt/solr/server/logs
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
deploy:
mode: replicated
replicas: 1
restart_policy:
window: 15s
update_config:
failure_action: rollback
nginx:
image: registry.gitlab.msu.edu/msu-libraries/public/archivesspace-docker/nginx:_TAG_
ports:
- target: 443
published: 443
mode: host
protocol: tcp
- target: 80
published: 80
mode: host
protocol: tcp
networks:
nonroutable_net:
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "10"
volumes:
- ssl:/ssl
- nginx_logs:/var/log/nginx
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
deploy:
mode: replicated
replicas: 1
restart_policy:
window: 15s
update_config:
failure_action: rollback
networks:
nonroutable_net:
driver: overlay
ipam:
config:
- subnet: 192.168.0.0/16
volumes:
solr:
ssl:
aspace_data:
db:
aspace_logs:
solr_logs:
nginx_logs:
db_logs: