-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·71 lines (71 loc) · 1.37 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
# Use postgres/example user/password credentials
version: '3.7'
volumes:
solr:
db:
storage:
redis:
services:
sidekiq:
image: nakatomi/charon_web:latest
command: bundle exec sidekiq
environment:
- REDIS_URL_SIDEKIQ=redis://redis:6379/0
healthcheck:
test:
- CMD
- rails
- runner
- 'Sidekiq.redis(&:info)'
interval: 30s
timeout: 5s
retries: 3
redis:
image: redis:6-alpine
command: redis-server --loglevel warning
ports:
- 6379:6379
volumes:
- redis:/data
healthcheck:
test:
- CMD
- redis-cli
- PING
db:
image: postgres
volumes:
- db:/var/lib/postgresql/data/pgdata
restart: always
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_PASSWORD: example
ports:
- 5432:5432
web:
image: nakatomi/charon_web
tmpfs:
- /tmp
ports:
- 3000:3000
entrypoint: /home/charon/web/docker-entrypoint.sh
solr:
image: nakatomi/charon_solr
ports:
- 8983:8983
volumes:
- solr:/opt/solr/server/solr/mycores/blacklight-core/data
healthcheck:
test:
- CMD
- wget
- "-O"
- "/dev/null"
- http://localhost:8983/solr/
interval: 30s
timeout: 5s
retries: 3
iiif:
image: nakatomi/charon_cantaloupe:4.0
ports:
- 8182:8182