-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
90 lines (82 loc) · 2.38 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
version: '3.4'
volumes:
fcrepo:
solr:
redis:
app:
cache:
assets:
networks:
internal:
x-app: &app
build:
context: .
dockerfile: Dockerfile
target: development_image
image: hyrax-orcid/dev:latest
# NOTE: To setup the db before the app loads, use the following, but its normally unncessarily slow if you dont have migrations to run
command: bash -c "rm -f spec/internal_test_hyrax/tmp/pids/server.pid && bundle exec rails db:create && bundle exec rails db:migrate && bundle exec rails server -b 0.0.0.0"
# command: bash -c "rm -f spec/internal_test_hyrax/tmp/pids/server.pid && bundle install && bundle exec rails server -b 0.0.0.0"
stdin_open: true
tty: true
environment:
# End of copy
FCREPO_HOST: fcrepo
FCREPO_PORT: 8080
FCREPO_REST_PATH: fcrepo/rest
FCREPO_DEV_BASE_PATH: /dev
FCREPO_TEST_BASE_PATH: /test
IN_DOCKER: "true"
LD_LIBRARY_PATH: /opt/fits/tools/mediainfo/linux
RAILS_LOG_TO_STDOUT: "true"
REDIS_HOST: redis
SECRET_KEY_BASE: asdf
SOLR_DEVELOPMENT_URL: http://solr:8983/solr/hyrax-development
SOLR_TEST_URL: http://solr:8983/solr/hyrax-development
PASSENGER_APP_ENV: development
volumes:
- app:/home/app/spec/internal_test_hyrax/tmp/uploads
- assets:/home/app/spec/internal_test_hyrax/public/assets
- cache:/home/app/spec/internal_test_hyrax/tmp/cache
- .:/home/app
networks:
internal:
services:
web:
<<: *app
depends_on:
- solr
- fcrepo
- redis
ports:
- 3000:3000
solr: &solr
image: solr:8.6.2
volumes:
- ./spec/internal_test_hyrax/solr/config:/opt/solr/server/configsets/hyrax_conf
- solr:/var/solr/data:cached
command:
- sh
- "-c"
- "precreate-core hyrax-test /opt/solr/server/configsets/hyrax_conf; solr-precreate hyrax-development /opt/solr/server/configsets/hyrax_conf"
ports:
- "8983:8983"
networks:
internal:
fcrepo: &fcrepo
image: cbeer/fcrepo4:4.7
ports:
- "8080:8080"
volumes:
- fcrepo:/data
environment:
JAVA_OPTS: '${JAVA_OPTS} -Dfcrepo.modeshape.configuration="classpath:/config/file-simple/repository.json" -Dfcrepo.object.directory="/data/objects" -Dfcrepo.binary.directory="/data/binaries"'
networks:
internal:
redis: &redis
image: redis:4
command: redis-server
volumes:
- redis:/data
networks:
internal: