forked from archivesspace/archivesspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dist.yml
54 lines (53 loc) · 1.38 KB
/
docker-compose-dist.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
# docker-compose -f docker-compose-dist.yml build
# docker-compose -f docker-compose-dist.yml up
# docker compose -f docker-compose-dist.yml restart app2 # post migration restart app2 (or wait for healthcheck failure to kick in)
version: '3.8'
services:
app:
image: archivesspace/archivesspace:latest
restart: on-failure
depends_on:
- db
- solr
environment:
ASPACE_DB_MIGRATE: true
env_file:
- .env.docker.release
app2:
image: archivesspace/archivesspace:latest
restart: on-failure
depends_on:
- db
- solr
environment:
ASPACE_DB_MIGRATE: false # only run db migrations via app1
env_file:
- .env.docker.release
db:
container_name: as_dist_db
image: mysql:8.0
command: --character-set-server=UTF8MB4 --innodb_buffer_pool_size=2G --innodb_buffer_pool_instances=2 --log_bin_trust_function_creators=1
ports:
- "3309:3306"
env_file:
- .env.docker.db
solr:
container_name: as_dist_solr
build:
context: ./solr
image: archivesspace/solr:latest
command: solr-create -p 8983 -c archivesspace -d archivesspace
ports:
- "8986:8983"
web:
container_name: as_dist_proxy
build:
args:
DEFAULT_CFG: default.conf.dist
context: ./proxy
image: archivesspace/proxy-dist:1.21
ports:
- "80:80"
depends_on:
- app
- app2