-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
142 lines (139 loc) · 2.98 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
132
133
134
135
136
137
138
139
140
141
142
version: '3.7'
services:
web: &web
build:
context: .
image: cazzerson/hy-c-universal
platform: linux/amd64
depends_on:
- clamav
- db
- fedora
- solr8
env_file:
- docker/.env
ports:
- 3000:3000
volumes:
- mount-code:/hyrax
- mount-gems:/hyc-gems
- fcrepo_data:/opt/fedora/
- hyrax_data:/opt/hyrax
- ftp_data:/opt/data/ftp
stdin_open: true
tty: true
networks:
- hycdev
sidekiq:
build:
context: .
image: cazzerson/hy-c-universal
platform: linux/amd64
depends_on:
- clamav
- db
- fedora
- redis
- solr8
- web
command: sh /hyrax/docker/start-sidekiq.sh
env_file:
- docker/.env
volumes:
- mount-code:/hyrax
- mount-sidekiq-gems:/hyc-gems
- fcrepo_data:/opt/fedora/
- hyrax_data:/opt/hyrax
- ftp_data:/opt/data/ftp
networks:
- hycdev
clamav:
image: tiredofit/clamav:2.5.3
ports:
- "3310:3310"
volumes:
- clam:/var/lib/clamav
- hyrax_data:/opt/hyrax
- mount-code:/hyrax
networks:
- hycdev
db:
image: postgres:14-alpine
volumes:
- pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: hyrax
POSTGRES_PASSWORD: password
networks:
- hycdev
fedora:
image: cazzerson/fcrepo4:4.7.5
ports:
- "8984:8080"
volumes:
- fcrepo_data:/usr/local/tomcat/fcrepo4-data/
environment:
CATALINA_OPTS: "-Djava.awt.headless=true -server -Xms1G -Xmx2G -XX:MaxNewSize=1G -XX:+HeapDumpOnOutOfMemoryError -Dfcrepo.modeshape.configuration=classpath:/config/file-simple/repository.json"
stdin_open: true
tty: true
networks:
- hycdev
redis:
image: redis:5.0.14
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- redis_data:/data
ports:
- "6379:6379"
networks:
- hycdev
solr8:
image: solr:8.11-slim
volumes:
- ./solr/config:/opt/solr/server/solr/configsets/hy-c
- solr8-data:/var/solr/data
ports:
- "8983:8983"
command: >
bash -c "
precreate-core hydra-development /opt/solr/server/solr/configsets/hy-c &&
precreate-core hydra-test /opt/solr/server/solr/configsets/hy-c &&
exec solr -f
"
networks:
- hycdev
volumes:
mount-code:
mount-gems:
mount-sidekiq-gems:
solr8-data:
clam:
pg_data:
fcrepo_data:
redis_data:
hyrax_data:
ftp_data:
networks:
hycdev:
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-hycdev
x-mutagen:
sync:
defaults:
mode: "two-way-resolved"
ignore:
vcs: true
paths:
- ".DS_Store"
mount-code:
alpha: '.'
beta: "volume://mount-code"
configurationBeta:
permissions:
defaultFileMode: 0644
defaultDirectoryMode: 0755