-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
78 lines (74 loc) · 1.83 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
version: '3.7'
# used for local testing
# note only have either mfcs_export or mnt not both for conversions or hydra.
services:
hydra:
build:
context: ./
dockerfile: Dockerfile
container_name: %%project_name%%
restart: always
environment:
- SECRET_KEY_BASE=%%secret_key_base%%
- FEDORA_DEV_URL=http://fcrepo:8080/rest/
- FEDORA_PASSWORD=fedoraAdmin
- SOLR_DEV_URL=http://solr:8983/solr/hydra_dev/
- MYSQL_PASSWORD="changeme"
- MYSQL_HOST=db
- MYSQL_PORT=3306
- TERM=xterm
- RAILS_ENV=development
- RACK_ENV=development
depends_on:
- fcrepo
- db
- solr
ports:
- 3000:3000
volumes:
- ./hydra:/home/hydra
- ./mfcs_export:/mfcs_export
fcrepo:
image: ghcr.io/samvera/fcrepo4:4.7.5
container_name: fcrepo
restart: on-failure
volumes:
- ./fedora/data:/data:cached
ports:
- "8080:8080"
solr:
image: solr:8.7
container_name: solr
restart: on-failure
ports:
- 8983:8983
command:
- sh
- "-c"
- "solr-precreate hydra_dev /opt/solr/server/configsets/hydraconf"
volumes:
- ./solr/data:/var/solr/data:cached
- ./solr/conf:/opt/solr/server/configsets/hydraconf
db:
image: mysql:5.7.27
container_name: db
restart: always
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=changeme
volumes:
- ./mysql:/var/lib/mysql
conversion:
build:
context: ./conversion/
dockerfile: Dockerfile
container_name: %%project_name%%_conversion
restart: always
environment:
- TERM=xterm
volumes:
- ./conversion/scripts:/convert/
- ./conversion/control:/control/
- ./mfcs_export:/mfcs_export
- ./mnt:/mnt