-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
149 lines (138 loc) Β· 3.13 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
services:
app:
image: lafayette/spot-web
build:
context: .
target: spot-web-development
volumes:
- .:/spot
- rails_tmp:/spot/tmp
- /spot/public/pdf
ports:
- "443:443"
env_file:
- .env.local
depends_on:
- cantaloupe
- db
- fedora
- redis
- solr
- db_migrate
stdin_open: true
tty: true
cantaloupe:
image: uclalibrary/cantaloupe:4.1.5
ports:
- "8182:8182"
environment:
CANTALOUPE_BASE_URI: 'http://localhost:8182'
CANTALOUPE_SOURCE_STATIC: S3Source
CANTALOUPE_S3SOURCE_ACCESS_KEY_ID: minio_root_user
CANTALOUPE_S3SOURCE_SECRET_KEY: minio_root_password
CANTALOUPE_S3SOURCE_BASICLOOKUPSTRATEGY_BUCKET_NAME: iiif-derivatives
CANTALOUPE_S3SOURCE_BASICLOOKUPSTRATEGY_PATH_SUFFIX: "-access.tif"
CANTALOUPE_S3SOURCE_ENDPOINT: "http://minio:9000"
CANTALOUPE_S3SOURCE_LOOKUP_STRATEGY: BasicLookupStrategy
CANTALOUPE_LOG_APPLICATION_LEVEL: trace
restart: unless-stopped
db:
image: postgres:13-alpine
volumes:
- db:/var/lib/postgresql/data
- ./bin/create-dev-dbs.sql:/docker-entrypoint-initdb.d/10-create-dev-dbs.sql
ports:
- "5432:5432"
environment:
POSTGRES_DB: spot_dev
POSTGRES_USER: spot_dev_user
POSTGRES_PASSWORD: spot_dev_pw
restart: unless-stopped
db_migrate:
image: lafayette/spot-web
env_file:
- .env.local
entrypoint: ["sh", "-c"]
command: bin/migrate-and-seed-db.sh
depends_on:
- db
- fedora
- solr
fedora:
build:
context: ./docker/fcrepo
volumes:
- fedora:/data:cached
ports:
- 8080:8080
environment:
FCREPO_POSTGRES_HOST: db
FCREPO_POSTGRES_USER: spot_fcrepo_dev_user
FCREPO_POSTGRES_PASSWORD: spot_fcrepo_dev_pw
restart: unless-stopped
depends_on:
- db
fits-servlet:
build:
context: ./docker/fits_servlet
ports:
- 8000:8080
restart: unless-stopped
minio:
image: minio/minio:latest
environment:
MINIO_ROOT_USER: minio_root_user
MINIO_ROOT_PASSWORD: minio_root_password
command: server --console-address ":9001" /data
volumes:
- minio:/data
ports:
- 9000:9000
- 9001:9001
redis:
image: redis:alpine
volumes:
- redis:/data
restart: unless-stopped
ports:
- 6379:6379
sidekiq:
image: lafayette/spot-worker
build:
context: .
target: spot-worker-development
env_file:
- .env.local
environment:
- FITS_SERVLET_URL=http://fits-servlet:8080/fits
ports:
- "3003:3000"
command: ["bundle", "exec", "sidekiq"]
volumes:
- .:/spot
- rails_tmp:/spot/tmp
restart: unless-stopped
depends_on:
- db
- fedora
- fits-servlet
- redis
- solr
solr:
build:
context: ./docker/solr
volumes:
- solr:/var/solr/data
ports:
- "8983:8983"
environment:
- SOLR_CORES=spot-development,spot-test
- SOLR_HOST=solr
restart: unless-stopped
volumes:
db:
fedora:
minio:
solr:
rails_tmp:
redis: