-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
119 lines (119 loc) · 2.36 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: '2.1'
services:
app:
build: docker/app
image: hyrax_app
ports:
- "3000"
volumes:
- .:/opt/hyrax
- gems:/opt/bundle
depends_on:
- redis
- fcrepo
- solr
- db
environment:
RAILS_ENV: ${RAILS_ENV:-development}
HYRAX_DB_HOST: db
DOCKER_HOST_HOSTNAME: $DOCKER_HOST_HOSTNAME
worker:
image: hyrax_app
depends_on:
- db
- redis
- app
volumes_from:
- app
environment:
RAILS_ENV: ${RAILS_ENV:-development}
HYRAX_REDIS_HOST: redis
HYRAX_REDIS_PORT: 6379
HYRAX_URL: http://app: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
db_test:
image: mysql:5
ports:
- "5433:3306"
environment:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: hyrax
fcrepo_db:
image: mysql:5
ports:
- "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"
volumes:
- redis:/data
solr:
build: solr
ports:
- "8983"
volumes:
- solr:/opt/solr/server/solr/mycores
fcrepo:
build: docker/fcrepo
ports:
- "8984"
depends_on:
fcrepo_db:
condition: service_healthy
volumes:
- fcrepo:/opt/fcrepo/data
web:
build:
context: .
dockerfile: ./docker/web/Dockerfile
depends_on:
- app
ports:
- "3010:80"
volumes:
cantaloupe:
fcrepo:
fcrepo_db:
gems:
mysqldata:
redis:
solr:
networks:
default:
driver: bridge