-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.ci.yml
85 lines (78 loc) · 1.85 KB
/
docker-compose.ci.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
volumes:
postgres:
solr:
networks:
internal:
x-app: &app
env_file:
- .env
environment:
no_proxy: localhost,web,workers,tika
build:
context: .
args:
- UID=${UID}
- GID=${GID}
- http_proxy=${http_proxy}
- https_proxy=${http_proxy}
image: ghcr.io/next-l/enju_leaf:latest
networks:
internal:
volumes:
- ./:/enju
depends_on:
- solr
restart: always
services:
web:
<<: *app
command: bash -c "rm -f tmp/pids/server.pid && bin/rails s -b 0.0.0.0"
expose:
- 3000
workers:
<<: *app
command: bundle exec rake solid_queue:start
solr:
image: solr:8
ports:
- 8983:8983
env_file:
- .env
networks:
internal:
volumes:
- solr:/var/solr/data
- ./solr:/mnt/solr
restart: always
command: bash -c "precreate-core enju_leaf_${RAILS_ENV} /mnt/solr/configsets/sunspot/conf/; precreate-core enju_leaf_test /mnt/solr/configsets/sunspot/conf/; exec solr -f"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8983/solr/enju_leaf_${RAILS_ENV}/admin/ping"]
interval: 30s
timeout: 5s
retries: 3
cantaloupe:
image: uclalibrary/cantaloupe:5.0.6-4
ports:
- 127.0.0.1:8182:8182
restart: always
environment:
no_proxy: localhost,web
SOURCE_STATIC: HttpSource
HTTPSOURCE_BASICLOOKUPSTRATEGY_URL_PREFIX: http://web:3000/picture_files/
HTTPSOURCE_BASICLOOKUPSTRATEGY_URL_SUFFIX: '.download?size=original'
ENDPOINT_API_ENABLED: 'true'
BASE_URI: ${CANTALOUPE_BASE_URI}
networks:
internal:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8182/health"]
interval: 30s
timeout: 20s
retries: 3
tika:
image: apache/tika:2.9.2.1
ports:
- 127.0.0.1:9998:9998
restart: always
networks:
internal: