-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local.yml
63 lines (60 loc) · 1.56 KB
/
docker-compose-local.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
version: '3.8'
services:
aspace:
container_name: 'aspace'
ports:
- 19120:8080
- 19121:8081
- 19123:8089
- 19124:8082
- 19125:8091
- 19126:8888
build:
context: './'
dockerfile: 'Dockerfile.local'
depends_on:
- "db"
- "solr"
environment:
- ASPACE_JAVA_XMX=-Xmx12000m
# - RUN_PLUGIN_INIT=true
env_file:
- "./local.env"
volumes:
- ./data:/archivesspace/data
- ./logs:/archivesspace/logs
- ./config.rb:/archivesspace/config/config.rb
- ./plugins:/archivesspace/plugins
- ./solr/schema.xml:/archivesspace/solr/schema.xml
# - /docker/aspace/aspace/config/migration_check:/archivesspace/migration_check
networks:
- aspace-local
db:
container_name: aspace_db
image: mysql:8.2.0
command: --character-set-server=UTF8MB4 --innodb_buffer_pool_size=2G --innodb_buffer_pool_instances=2 --log_bin_trust_function_creators=1
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=archivesspace
- MYSQL_USER=as
- MYSQL_PASSWORD=as123
volumes:
- ./db:/var/lib/mysql
networks:
- aspace-local
solr:
build:
context: ./solr
image: archivesspace/solr:3.4.1
command: solr-create -p 8983 -c archivesspace -d archivesspace
ports:
- "8983:8983"
volumes:
- ./solr_data:/var/solr/data:cached
networks:
- aspace-local
networks:
aspace-local:
name: aspace-local