forked from uclibs/hyrax-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (101 loc) · 1.97 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
version: '2.1'
services:
web:
build: docker/web
image: hyrax_web
ports:
- "3000:3000"
volumes:
- ..:/opt/hyrax
- gems:/opt/bundle
depends_on:
- redis
- fcrepo
- solr
- db
environment:
RAILS_ENV: development
HYRAX_DB_HOST: db
worker:
image: hyrax_web
depends_on:
- db
- redis
- web
volumes_from:
- web
environment:
RAILS_ENV: development
HYRAX_REDIS_HOST: redis
HYRAX_REDIS_PORT: 6379
HYRAX_URL: http://web:3000
QUEUE: "*"
command: sidekiq
db:
image: mysql:5
ports:
- "5432:3306"
command: mysqld --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: hyrax
volumes:
- mysqldata:/var/lib/mysql
fcrepo_db:
image: mysql:5
ports:
- "3306:3306"
command: mysqld --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: fcrepo
volumes:
- fcrepo_db:/var/lib/mysql
healthcheck:
test: mysql -h fcrepo_db -u root --password=root fcrepo --execute "SHOW DATABASES;"
interval: 30s
timeout: 30s
retries: 5
cantaloupe:
build: docker/cantaloupe
ports:
- "8182:8182"
volumes:
- cantaloupe:/var/
depends_on:
- fcrepo
redis:
image: redis
command: redis-server --appendonly yes
ports:
- "6379:6379"
volumes:
- redis:/data
solr:
build: docker/solr
ports:
- "8983:8983"
volumes:
- solr:/opt/solr/server/solr/mycores
fcrepo:
build: docker/fcrepo
ports:
- "8984:8984"
depends_on:
fcrepo_db:
condition: service_healthy
volumes:
- fcrepo:/opt/fcrepo/data
volumes:
cantaloupe:
fcrepo:
fcrepo_db:
gems:
mysqldata:
redis:
solr:
networks:
default:
driver: bridge