forked from samvera/hyrax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
163 lines (152 loc) · 3.51 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
version: '3.7'
services:
app: &app
build:
context: .
target: hyrax-engine-dev
args:
- EXTRA_APK_PACKAGES=git less
image: ghcr.io/samvera/dassie
stdin_open: true
tty: true
user: root
env_file:
- .env
- .dassie/.env
environment:
- RAILS_ROOT=/app/samvera/hyrax-webapp
depends_on:
- chrome
- db_migrate
- fcrepo
- memcached
- postgres
- redis
- solr
ports:
- 3000:3000
volumes:
- .dassie:/app/samvera/hyrax-webapp:cached
- .:/app/samvera/hyrax-engine:cached
- hyrax-derivatives:/app/samvera/hyrax-webapp/derivatives
- hyrax-uploads:/app/samvera/hyrax-webapp/uploads
- rails-public:/app/samvera/hyrax-webapp/public
- rails-tmp:/app/samvera/hyrax-webapp/tmp
networks:
- hyrax
chrome:
image: selenium/standalone-chrome:3.141
logging:
driver: none
volumes:
- /dev/shm:/dev/shm
shm_size: 2G
ports:
- "4444:4444"
- "5959:5900"
networks:
- hyrax
db_migrate:
image: ghcr.io/samvera/dassie
user: root
env_file:
- .env
entrypoint: ["sh", "-c"]
command: db-migrate-seed.sh
depends_on:
- postgres
volumes:
- .dassie:/app/samvera/hyrax-webapp:cached
- .:/app/samvera/hyrax-engine:cached
- rails-public:/app/samvera/hyrax-webapp/public
- rails-tmp:/app/samvera/hyrax-webapp/tmp
networks:
- hyrax
postgres:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=hyrax_user
- POSTGRES_PASSWORD=hyrax_password
- POSTGRES_DB=hyrax
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgresql/data
networks:
- hyrax
fcrepo:
image: ghcr.io/samvera/fcrepo4:4.7.5
volumes:
- fcrepo:/data:cached
ports:
- 8080:8080
networks:
- hyrax
memcached:
image: bitnami/memcached
ports:
- '11211:11211'
networks:
- hyrax
redis:
image: redis:5-alpine
volumes:
- redis:/data
networks:
- hyrax
sidekiq:
build:
context: .
target: hyrax-engine-dev-worker
image: ghcr.io/samvera/dassie-worker
user: root
env_file:
- .env
- .dassie/.env
depends_on:
- db_migrate
- fcrepo
- memcached
- postgres
- redis
- solr
volumes:
- .dassie:/app/samvera/hyrax-webapp:cached
- .:/app/samvera/hyrax-engine:cached
- hyrax-derivatives:/app/samvera/hyrax-webapp/derivatives
- hyrax-uploads:/app/samvera/hyrax-webapp/uploads
- sidekiq-public:/app/samvera/hyrax-webapp/public
- sidekiq-tmp:/app/samvera/hyrax-webapp/tmp
networks:
- hyrax
solr:
image: solr:8.7
ports:
- 8983:8983
command:
- sh
- "-c"
- "precreate-core hyrax_test /opt/solr/server/configsets/hyraxconf; precreate-core hyrax-valkyrie-test /opt/solr/server/configsets/hyraxconf; precreate-core hyrax-valkyrie-dev /opt/solr/server/configsets/hyraxconf; solr-precreate hyrax /opt/solr/server/configsets/hyraxconf"
volumes:
- solr_home:/var/solr/data:cached
- .dassie/solr/conf:/opt/solr/server/configsets/hyraxconf
networks:
- hyrax
volumes:
db:
fcrepo:
hyrax-derivatives:
hyrax-uploads:
rails-public:
rails-tmp:
redis:
sidekiq-public:
sidekiq-tmp:
solr_home:
networks:
hyrax:
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-hyrax