forked from wvulibraries/hydra_acda_portal_public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
158 lines (148 loc) · 3.33 KB
/
docker-compose.dev.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
version: '3.4'
services:
app:
build:
context: ./
dockerfile: Dockerfile.dev
env_file:
- './env/env.dev.hydra'
volumes:
- ./hydra:/home/hydra
- ./solr:/home/hydra/solr
- ./data/logs:/home/hydra/log
- ./scripts:/home/hydra/scripts
- ./data/mfcs-exports:/mnt/nfs-exports/mfcs-exports
- ./tmp/imports:/home/hydra/tmp/imports
- ./tmp/exports:/home/hydra/tmp/exports
- /home/hydra/tmp # don't mount tmp directory
networks:
- hydra
web:
extends: app
container_name: acda_portal
command: bash -c "bundle install; service cron start; gem install whenever; whenever --update-crontab; bundle exec rails s -p 3000 -b 0.0.0.0"
ports:
- "3000:3000"
depends_on:
redis:
condition: service_started
db:
condition: service_started
fcrepo:
condition: service_started
solr:
condition: service_started
workers:
condition: service_started
workers:
extends: app
container_name: sidekiq
command: bundle exec sidekiq -C config/sidekiq.yml
depends_on:
redis:
condition: service_started
db:
condition: service_started
fcrepo:
condition: service_started
solr:
condition: service_started
stdin_open: true
tty: true
memcached:
image: bitnami/memcached
container_name: memcached
ports:
- "11211"
networks:
- hydra
redis:
image: redis:alpine
container_name: redis
command: redis-server
ports:
- "6379"
env_file:
- './env/env.dev.redis'
volumes:
- redis:/var/lib/redis/data
restart: unless-stopped
healthcheck:
test: redis-cli -h redis ping
interval: 30s
timeout: 3s
retries: 3
networks:
- hydra
fcrepo:
image: ghcr.io/samvera/fcrepo4:4.7.5
container_name: fcrepo
depends_on:
- db
env_file:
- './env/env.dev.fedora'
ports:
- "8080:8080"
volumes:
- fcrepo:/data:cached
networks:
- hydra
solr:
image: solr:8.11.1
container_name: solr
restart: on-failure
ports:
- "127.0.0.1:8983:8983"
command:
- sh
- "-c"
- "solr-precreate hydra_dev /opt/solr/server/configsets/hydraconf"
- "&&"
- "chown -R 8983:8983 /var/solr"
volumes:
- ./solr/conf:/opt/solr/server/configsets/hydraconf
- solr:/var/solr
networks:
- hydra
db:
container_name: db
image: postgres:14-alpine
expose:
- "5432"
env_file:
- './env/env.dev.db'
volumes:
- postgres:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "fcrepo"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
networks:
- hydra
conversion:
build:
context: ./conversion/
dockerfile: Dockerfile
container_name: acda_conversion
restart: always
environment:
- TERM=xterm
volumes:
- ./conversion/scripts:/convert/
- ./conversion/control:/control/
- ./data/mfcs-exports:/mnt/nfs-exports/mfcs-exports
networks:
- hydra
volumes:
postgres:
fcrepo:
redis:
solr:
networks:
hydra:
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-hydra