-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
83 lines (83 loc) · 1.82 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
---
version: '3.4'
volumes:
db:
solr:
html:
services:
web:
image: geoblacklight/gblstack_web
depends_on:
- lsyncd
ports:
- "3000:3000"
links:
- "solr"
environment:
- RAILS_ENV=development
- SOLR_URL="http://solr:8983/solr/blacklight-core"
volumes:
- html:/usr/src/app
command: bash -c "rm -f tmp/pids/server.pid && bundle install && bundle exec rake db:migrate && bundle exec rails s -p 3000 -b '0.0.0.0'"
db:
image: postgres:10-alpine
read_only: true
volumes:
- type: volume
source: db
target: /data
- type: volume
target: /tmp
- type: volume
target: /var/log
- type: volume
target: /var/run
environment:
- PGDATA=/data
- POSTGRES_USER=docker
- POSTGRES_PASSWORD=d0ck3r
ports:
- 5433:5432
healthcheck:
test: "CMD echo 'SELECT 1' | PGPASSWORD=d0ck3r psql --host 127.0.0.1 --username docker
--dbname docker --quiet --no-align --tuples-only"
interval: 30s
timeout: 5s
retries: 3
solr:
image: solr:8.3-slim
read_only: true
volumes:
- type: volume
source: solr
target: /opt/solr/server/solr
- type: volume
target: /opt/solr/server
- type: volume
target: /tmp
- type: volume
target: /var/log
- type: volume
target: /var/run
- type: bind
source: $PWD/solr
target: /opt/solr/server/solr/configsets/_default
ports:
- 8983:8983
command: solr-precreate blacklight-core
healthcheck:
test:
- CMD
- wget
- "-O"
- "/dev/null"
- http://localhost:8983/solr/
interval: 30s
timeout: 5s
retries: 3
lsyncd:
image: allthings/lsyncd
command: -rsync /mnt/html /var/www/html
volumes:
- $PWD/.:/mnt/html
- html:/var/www/html