-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
48 lines (48 loc) · 1.58 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
version: "3"
services:
app:
image: archivesspace/archivesspace:3.5.0
container_name: archivesspace
restart: on-failure
ports:
- "8080:8080"
- "8081:8081"
- "8082:8082"
- "8089:8089"
- "8090:8090"
depends_on:
- db
- solr
environment:
APPCONFIG_DB_URL: "jdbc:mysql://db:3306/archivesspace?useUnicode=true&characterEncoding=UTF-8&user=as&password=as123&useSSL=false&allowPublicKeyRetrieval=true"
APPCONFIG_FRONTEND_PROXY_URL: "http://localhost:8080"
APPCONFIG_PUBLIC_PROXY_URL: "http://localhost:8081"
APPCONFIG_SOLR_URL: "http://solr:8983/solr/archivesspace"
ASPACE_DB_MIGRATE: true
ASPACE_JAVA_XMX: "-Xmx2048m"
JAVA_OPTS: "-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xss1024k -Djavax.accessibility.assistive_technologies=''"
volumes:
- ./config:/archivesspace/config
- ./plugins:/archivesspace/plugins
db:
image: mysql:8
cap_add:
- SYS_NICE
container_name: mysql
command: --character-set-server=utf8 --collation-server=utf8_unicode_ci --innodb_buffer_pool_size=1G --innodb_buffer_pool_instances=2 --log_bin_trust_function_creators=1
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "123456"
MYSQL_DATABASE: archivesspace
MYSQL_USER: as
MYSQL_PASSWORD: as123
volumes:
- ./sql:/docker-entrypoint-initdb.d
solr:
image: archivesspace/solr:3.5.0
command: solr-create -p 8983 -c archivesspace -d archivesspace
environment:
SOLR_JAVA_MEM: "-Xms2g -Xmx2g"
ports:
- "8983:8983"