forked from ualbertalib/jupiter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (73 loc) · 1.84 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
version: '3'
volumes:
postgres:
driver: local
solr:
driver: local
fcrepo:
driver: local
redis:
driver: local
services:
# Selenium with chrome driver for system tests
selenium:
image: selenium/standalone-chrome
volumes:
# copy fixture files for file uploads
- ./test/fixtures/files:/app/test/fixtures/files
postgres:
image: postgres:9.6-alpine
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: jupiter
volumes:
- postgres:/var/lib/postgresql/data
solr:
image: solr:6.6
# Uncomment this if you want to access SOLR's web interface
# ports:
# - "8983:8983"
volumes:
- solr:/opt/solr/server/solr/mycores
- ./solr/config:/config
- ./solr/scripts/solr-precreate-jupiter.sh:/docker-entrypoint-initdb.d/solr-precreate-jupiter.sh
fcrepo:
image: ualbertalib/docker-fcrepo4
volumes:
- fcrepo:/fcrepo4-data
# Uncomment this if you want to access Fedora's web interface
# ports:
# - "8080:8080"
redis:
image: redis:alpine
volumes:
- redis:/data
# Sidekiq
worker: &rails
build: .
image: ualbertalib/jupiter
command: bundle exec sidekiq
environment:
RAILS_ENV: development
DATABASE_URL: 'postgresql://jupiter:mysecretpassword@postgres:5432/'
FCREPO_URL: http://fcrepo:8080/fcrepo/rest
SOLR_URL: http://solr:8983/solr/development
SOLR_TEST_URL: http://solr:8983/solr/test
REDIS_URL: 'redis://redis/1'
SELENIUM_URL: 'http://selenium:4444/wd/hub'
CAPYBARA_NO_HEADLESS: 'true'
volumes:
- .:/app
depends_on:
- postgres
- fcrepo
- redis
- solr
- selenium
# Rails server
web:
<<: *rails
command: bin/docker-start
ports:
- "3000:3000"