forked from archivesspace/archivesspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-prod.yml
More file actions
102 lines (95 loc) · 2.41 KB
/
Copy pathdocker-compose-prod.yml
File metadata and controls
102 lines (95 loc) · 2.41 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
# This is intended as the simplest way to get a complete ArchivesSpace system up and running on a single instance using Docker.
# See also: https://docs.archivesspace.org/administration/docker/
x-logging: &default-logging
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
services:
app:
image: archivesspace/archivesspace:${ARCHIVESSPACE_DOCKER_TAG}
platform: linux/x86_64
container_name: archivesspace
restart: unless-stopped
logging: *default-logging
env_file:
- .env
depends_on:
- db
- solr
volumes:
- app-data:/archivesspace/data
- ./plugins:/archivesspace/plugins
- ./config:/archivesspace/config
- ./locales:/archivesspace/locales
- ./stylesheets:/archivesspace/stylesheets
db:
image: mysql:8
platform: linux/x86_64
cap_add:
- SYS_NICE
container_name: mysql
restart: unless-stopped
logging: *default-logging
env_file:
- .env
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --innodb_buffer_pool_size=1G --innodb_buffer_pool_instances=1 --log_bin_trust_function_creators=1
ports:
- "3306:3306"
volumes:
- db-data:/var/lib/mysql
- ./sql:/docker-entrypoint-initdb.d
db-backup:
image: databack/mysql-backup:latest
platform: linux/x86_64
container_name: db-backup
restart: unless-stopped
logging: *default-logging
user: "0"
env_file:
- .env
environment:
DB_DUMP_CRON: "0 2 * * *" # UTC
DB_DUMP_TARGET: /db
DB_SERVER: db
DB_USER: root
DB_PASS: ${MYSQL_ROOT_PASSWORD} # from .env
command: dump
volumes:
- ./backups:/db
depends_on:
- db
solr:
image: archivesspace/solr:${ARCHIVESSPACE_DOCKER_TAG}
platform: linux/x86_64
container_name: solr
restart: unless-stopped
logging: *default-logging
env_file:
- .env
command:
- solr-precreate
- archivesspace
- /opt/solr/server/solr/configsets/archivesspace
ports:
- "8983:8983"
volumes:
- solr-data:/var/solr
proxy:
image: nginx:stable
platform: linux/x86_64
container_name: proxy
restart: unless-stopped
logging: *default-logging
env_file:
- .env
depends_on:
- app
ports:
- "${NGINX_PORT}:80"
volumes:
- ./proxy-config:/etc/nginx/conf.d/
volumes:
app-data:
db-data:
solr-data: