/
docker-compose.yml
108 lines (98 loc) · 1.94 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
version: '2.2'
services:
main:
image: "${REGISTRY_HOST}${REGISTRY_URI}:${TAG}"
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
- .env.development
volumes:
- .:/home/app/webapp:delegated
web:
extends: main
environment:
VIRTUAL_HOST: vdc.docker
VIRTUAL_PORT: 80
IN_DOCKER: 'true'
HUB_URL: "http://chrome:4444/wd/hub"
ports:
- "${DEV_PORT}"
- "3010:3010"
depends_on:
- redis
- solr
- fcrepo
- mysql
- worker
- chrome
volumes:
- .:/home/app/webapp:cached
- app:/home/app/webapp/tmp/uploads
- assets:/home/app/webapp/public/assets
- node_modules:/home/app/webapp/node_modules
- rails_cache:/home/app/webapp/tmp/cache
worker:
extends: main
command: bundle exec sidekiq
depends_on:
- redis
- solr
- fcrepo
- mysql
redis:
image: redis:3
ports:
- '6379'
volumes:
- 'redis:/data'
mysql:
image: mysql:5.7
env_file:
- .env
ports:
- '3306:3306'
volumes:
- 'mysql:/var/lib/mysql'
solr:
image: registry.gitlab.com/notch8/rutgers-vdc/solr:latest
build:
context: .
dockerfile: Dockerfile.solr
ports:
- "8983"
environment:
VIRTUAL_HOST: solr.vdc.docker
VIRTUAL_PORT: 8983
volumes:
- .:/app
- './solr/config:/opt/config'
command:
- sh
- -c
- "precreate-core hyrax_test /opt/config; solr-precreate hyrax /opt/config"
fcrepo:
image: botimer/fcrepo:4.5.1
volumes:
- 'fcrepo:/opt/data'
ports:
- "8984:8080"
chrome:
image: selenium/standalone-chrome-debug:3.141.59-20201010
logging:
driver: none
volumes:
- /dev/shm:/dev/shm
shm_size: 2G
ports:
- "4444:4444"
- "5959:5900"
volumes:
app:
assets:
fcrepo:
mysql:
rails_cache:
redis:
node_modules: